Skip to content

Add aliases like "/?" or "-?" to built-in "--help" verb #731

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
ayeltsov opened this issue Jan 5, 2021 · 1 comment
Open

Add aliases like "/?" or "-?" to built-in "--help" verb #731

ayeltsov opened this issue Jan 5, 2021 · 1 comment

Comments

@ayeltsov
Copy link

ayeltsov commented Jan 5, 2021

I'd like to add couple of commonly used aliases like "/?" and "-?" to the built-in "--help" verb.
Is this possible?

Didn't find that in documentation or existing issues.

Thanks!

@rmunn
Copy link
Contributor

rmunn commented Feb 6, 2021

#686 is a PR to add the commonly-used -h alias for --help, and -V for --version. Note that in the Unix getopt world, which this library is designed to mimic, /? and -? are not commonly-used aliases, which is why I wrote that PR to hardcode the -h and -V aliases rather than allowing them to vary. If this library ever implements a "Windows parser mode" where / is the default option designator character instead of -, then /? would make sense. Meanwhile, if you want to look at the poll at #686 (comment) and vote, please do. Currently it's 4 in favor of hardcoded -h and -V alias, and 1 against, so I'm currently inclined to leave that PR as-is. Please leave a comment over there arguing for reasons not to do that, if you want.

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