Skip to content

feat(cli): add --help and --version flags to both CLI commands - #216

Open
TerminalGravity wants to merge 1 commit into
mainfrom
feat/cli-help-flags
Open

feat(cli): add --help and --version flags to both CLI commands#216
TerminalGravity wants to merge 1 commit into
mainfrom
feat/cli-help-flags

Conversation

@TerminalGravity

Copy link
Copy Markdown
Collaborator

Previously, running npx preflight-dev --help would launch the interactive wizard instead of showing help text. This adds proper --help/-h and --version/-v flag support to both CLI entry points:

  • preflight-dev: shows usage, related commands, and quick start
  • preflight-dev-serve: shows usage, environment variables, and config example

Tested locally — build passes, flags work correctly.

@TerminalGravity TerminalGravity left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good UX improvement. --help and --version are table stakes for CLI tools — surprised these weren't there from the start. Clean implementation. LGTM.

- preflight-dev --help now shows usage, profiles, and examples
- preflight-dev --version prints the package version
- --profile <name> enables non-interactive setup (CI-friendly)
- --config auto-creates .preflight/ directory without prompting
- Interactive wizard still works as before when no flags passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant