Skip to content

chore: add support for using flags (--version, -V) for CLI version#666

Merged
mcncl merged 1 commit intomainfrom
SUP-6283/version_flags
Feb 26, 2026
Merged

chore: add support for using flags (--version, -V) for CLI version#666
mcncl merged 1 commit intomainfrom
SUP-6283/version_flags

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Feb 26, 2026

Description

Similarly to how we support --help to run the help command, we can do that with --version and -V, which are the conventions for viewing a CLI's version

Changes

  • adds a handler (similar to --help) for --version/-V

Testing

  • Code is formatted (with go fmt ./...)

Similarly to how we support `--help` to run the `help` command, we can do that with `--version` and `-V`, which are the conventions for viewing a CLI's version
@mcncl mcncl requested a review from a team as a code owner February 26, 2026 00:45
@mcncl mcncl enabled auto-merge (squash) February 26, 2026 00:50
@mcncl mcncl merged commit 1962ca5 into main Feb 26, 2026
1 check passed
@mcncl mcncl deleted the SUP-6283/version_flags branch February 26, 2026 03:14
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.

2 participants