Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature/Idea]: Support lowercase -v for version when no subcommand is supplied #409

Closed
aaronliu0130 opened this issue Jan 28, 2024 · 1 comment
Assignees

Comments

@aaronliu0130
Copy link

What would you like to see changed/added?

Currently, if no subcommand is provided and one types -v, they get an error, as the version switch is now -V. This change feels like it has no use: it's not like you can combine it with another subcommand either. I propose to eliminate the -V switch and replace it with -v only in the case where

@russellbanks
Copy link
Owner

russellbanks commented Jan 31, 2024

Clap, the library Komac uses for command line argument parsing, defaults to -V rather than -v to not conflict with the common usage of -v being a verbose flag - clap-rs/clap#138. As Komac doesn't use a verbose flag, I can override it so that -v, -V and --version are all valid options.

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

No branches or pull requests

2 participants