Skip to content

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

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

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

Conversation

@kumaakh
Copy link
Copy Markdown
Collaborator

@kumaakh kumaakh commented May 27, 2026

Summary

  • gh-toy-4ef: Add --version / -v flag — prints fleet-e2e-toy v1.0.0 and exits 0
  • gh-toy-v6z: Add input validation — empty or whitespace-only positional args are rejected with an error on stderr and exit code 1
  • gh-toy-kbk: Add help subcommand and --help / -h flag — prints usage covering all commands and flags

Closes #1, #2, #3

Test plan

  • ./tool --versionfleet-e2e-toy v1.0.0, exit 0
  • ./tool -v → same
  • ./tool help → full usage, exit 0
  • ./tool --help → same
  • ./tool -h → same
  • ./tool "" → error on stderr, exit 1
  • ./tool " " → error on stderr, exit 1
  • All 28 tests pass (8 validation, 15 API, 5 CLI) — no regressions
  • Build and lint clean

fleet-reviewer added 8 commits May 27, 2026 14:15
Covers gh-toy-4ef (--version flag), gh-toy-v6z (blank input validation),
and gh-toy-kbk (help command) across one cohesive Phase 1.
Plan review passes all 13 checklist items. Two non-blocking
notes for the implementer: rootDir constraint on package.json
import, and "works alongside other flags" AC coverage.
All 28 tests pass, build and lint clean. Three sprint requirements
(--version flag, help command, input validation) fully implemented
and tested. No security issues, no regressions.
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.

Add --version flag to CLI

1 participant