Skip to content

Is it possible to add -h, -v to --help, --version? #585

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

Open
rubin55 opened this issue Feb 13, 2020 · 2 comments
Open

Is it possible to add -h, -v to --help, --version? #585

rubin55 opened this issue Feb 13, 2020 · 2 comments

Comments

@rubin55
Copy link

rubin55 commented Feb 13, 2020

I would like to make my app behave consistently and add the short variants ala, -v, --version and -h, --help to trigger the built-in AutoVersion and AutoHelp; is this possible? How would one accomplish that?

@rmunn
Copy link
Contributor

rmunn commented Mar 29, 2020

I've written #608 to implement this by adding new AutoHelpShortName and AutoVersionShortName settings, which default to false. If you set them to true, then -h will be the shortname for --help and -V will be the shortname for --version. Note that that's uppercase V for consistency with almost all software that I've seen (because -v with a lowercase v is usually the shortname for --verbose).

@rmunn
Copy link
Contributor

rmunn commented Aug 19, 2020

#608 has been replaced by #686, which has the same feature but has been rebased on top of the current state of the develop branch.

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