fix(cli): reject values on top-level flags - #88
Conversation
GPT ReviewerVerdict: REJECT Reviewed head The central arity fix remains bypassable for string "true" values, and the new process tests are not isolated from the user's HOME. Findings
Shared exact-snapshot validation
|
Claude ReviewerVerdict: PASS Reviewed head The PR correctly implements the issue #85 boundary: top-level --help/--version values captured by parseArgs (following or inline) are rejected with the standard non-zero JSON stderr envelope before any dispatch or side effect, while bare --help/--version, bare FindingsNone. Shared exact-snapshot validation
|
Parent verification — GPT Reviewer findingsVerified against exact head
The original reviewer artifact and labels remain unchanged for audit. This note qualifies the blocker interpretation; it does not rewrite the reviewer verdict. |
Summary
--helpand--versionflagsValidation
npm run test -w @h402/cli -- tests/cli-help.test.ts— 25/25 passednpm test— CLI 215/215 and core 14/14 passednpm run typechecknpm run lintnpm run buildnpm run verify:packnpm run smoke:packgit diff --cached --checkCloses #85