Skip to content

Support lowercase -v as a version flag alias - #298

Merged
Alexander Zaslonov (azaslonov) merged 2 commits into
mainfrom
copilot/fix-cli-flag-case-sensitivity
Sep 25, 2026
Merged

Alexander Zaslonov (azaslonov) merged 2 commits into
mainfrom
copilot/fix-cli-flag-case-sensitivity

Conversation

Copilot AI commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

apiops -v was rejected even though -V and --version printed the installed version.

  • CLI: Add -v through Commander’s built-in version handling, preserving existing aliases and leaving other flags’ case sensitivity unchanged.
  • Documentation: Expose the alias in help output and the getting-started guide.

These invocations produce the same version output:

apiops -v
apiops -V
apiops --version

Copilot AI balanced review requested due to automatic review settings September 25, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: azaslonov <2320302+azaslonov@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 25, 2026 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation is narrowly scoped, documented, and covered by CLI regression tests.

Review effort: Balanced
Findings: None

Copilot AI changed the title [WIP] Fix case sensitivity for CLI flags Support lowercase -v as a version flag alias Sep 25, 2026
@azaslonov
Alexander Zaslonov (azaslonov) marked this pull request as ready for review September 25, 2026 20:01
@azaslonov
Alexander Zaslonov (azaslonov) merged commit a5cd31d into main Sep 25, 2026
7 checks passed
@azaslonov
Alexander Zaslonov (azaslonov) deleted the copilot/fix-cli-flag-case-sensitivity branch September 25, 2026 20:34
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.

CLI flags should not be case-sensitive (apiops -v fails, -V works)

4 participants