Skip to content

feat: add --version flag, help command, and input validation (e2e-s1.2-25990827273)#30

Open
kumaakh wants to merge 8 commits into
mainfrom
e2e-s1.2-25990827273/cli-features
Open

feat: add --version flag, help command, and input validation (e2e-s1.2-25990827273)#30
kumaakh wants to merge 8 commits into
mainfrom
e2e-s1.2-25990827273/cli-features

Conversation

@kumaakh
Copy link
Copy Markdown
Collaborator

@kumaakh kumaakh commented May 17, 2026

Summary

  • Add --version/-v flag to CLI: prints fleet-e2e-toy v1.0.0 and exits 0 (gh-toy-4ef)
  • Add help/--help/-h command: prints usage listing all subcommands and flags, exits 0 (gh-toy-kbk)
  • Fix whitespace-only content validation bug: reject blank/whitespace-only strings with clear error + non-zero exit, add 2 unit tests (gh-toy-v6z)

Sprint: e2e-s1.2-25990827273 | Branch: e2e-s1.2-25990827273/cli-features

Test plan

  • All 23 tests pass (npm test)
  • ./tool --version and ./tool -v print fleet-e2e-toy v1.0.0, exit 0
  • ./tool help, ./tool --help, ./tool -h print usage, exit 0
  • ./tool (no flags) still starts server normally
  • Empty/whitespace content argument rejected with user-friendly error, non-zero exit
  • Code review: APPROVED by reviewer

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