Skip to content

fix(cli): make -V and --version print the versions - #140

Merged
Shinrai merged 2 commits into
nextfrom
fix/version-flag
Nov 29, 2026
Merged

Shinrai merged 2 commits into
nextfrom
fix/version-flag

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(cli): make -V and --version print the versions (1b38eed)

📦 Dependencies

No dependency updates

🔧 Other Changes

  • test(cli): -V and --version print the versions (58b37fb)
👥 Contributors

The old test recorded the broken behaviour (version help on stdout,
unknown option, exit 1). It now expects what the version command prints.
commander rejects a leading -V/--version as an unknown option, and a
command alias can't be a flag, so the version command's flag aliases
never matched. The bin now maps the two flags onto the version command
before parsing, and the spec drops the aliases.

Resolves #124
@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure labels Nov 29, 2026
@Shinrai
Shinrai merged commit c12c313 into next Nov 29, 2026
37 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/version-flag branch November 29, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant