Skip to content

fix(server-card): rename --version to --set-version (global flag clash)#89

Merged
Wolfe-Jam merged 1 commit into
mainfrom
fix/server-card-version-flag-clash
Jul 1, 2026
Merged

fix(server-card): rename --version to --set-version (global flag clash)#89
Wolfe-Jam merged 1 commit into
mainfrom
fix/server-card-version-flag-clash

Conversation

@Wolfe-Jam

Copy link
Copy Markdown
Owner

Bug (reported by wolfejam): faf server-card --version <v> prints the CLI version instead of setting the card's version field.

Cause: the server-card command's --version <version> option (cli.ts:195) collided with commander's program-level .version(VERSION, '-v, --version') (cli.ts:48) — the built-in wins, prints 7.0.1, and exits before the field is set. The old flag never worked.

Fix: rename the option --version--set-version (options.versionoptions.setVersion). The global -v/--version is untouched.

Verified (manual, no existing command-test harness):

Test Result
server-card --set-version 9.9.9 --check ✅ output "version": "9.9.9"
faf --version ✅ still 7.0.1 (global flag intact)
server-card --help ✅ shows --set-version + a note pointing at the global flag

Pure fix (the old flag was broken), so no migration for anyone who had it working — nobody did. Ship via /pubpro as 7.0.2 (this PR is the code fix only).

Assisted by Claude (Opus 4.8) · Approved by James Wolfe (@Wolfe-Jam)

`faf server-card --version <v>` collided with commander's program-level
`.version(VERSION, '-v, --version')` (cli.ts:48), so commander's built-in won
and PRINTED the CLI version instead of setting the card's version field.

Renamed the server-card option --version -> --set-version (options.setVersion);
the global -v/--version is untouched. The old flag never worked (it printed the
CLI version), so this is a pure fix, not a break.

Verified: `server-card --set-version 9.9.9 --check` -> version 9.9.9;
`faf --version` still prints the CLI version; `server-card --help` shows
--set-version. Typecheck clean (the TS2688 bun-types note is pre-existing env).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
faf-cli Ready Ready Preview, Comment Jul 1, 2026 4:43am

@Wolfe-Jam Wolfe-Jam merged commit 5277161 into main Jul 1, 2026
11 checks passed
@Wolfe-Jam Wolfe-Jam deleted the fix/server-card-version-flag-clash branch July 1, 2026 04:51
Wolfe-Jam added a commit that referenced this pull request Jul 1, 2026
Version + CHANGELOG for the server-card flag-clash fix already merged (#89).
Patch → inherits "The GIT Version" (no new edition).

- package.json 7.0.1 → 7.0.2
- CHANGELOG: meta-stamp latest=v7.0.2 + [7.0.2] entry

Publish via /pubpro after merge (npm + faf dual-publish + Homebrew).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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