Skip to content

feat(cli): add --help and --version to the standalone binary #164

Description

@benjamineckstein

Problem. --help exits 1 (no real help branch); --version does not exist; version drift is invisible (manifest 0.13.0 while the package is on 0.14.0).

Evidence. src/Console/StandaloneApplication.php:45-54 run() only branches check/scaffold/generate.

Fix. Handle --help (print usage, exit 0) and --version before subcommand dispatch; for --version, read Composer\InstalledVersions::getPrettyVersion('codewithagents/openapi-laravel') so it never drifts from the published tag.

Done when. --help exits 0 with usage; --version prints the installed version.


Filed from a repo-wide improvement audit; every claim was adversarially verified against source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions