-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Add '-?' as an additional alias for '-h' and '--help', just like 'dotnet -?' #1547
Comments
Sounds like a reasonable thing to add 👍 |
Adding it as another alias/name for the Help command fails with So there are two implementation choices:
Option 1 would make the alias discoverable, but may have unintended side-effects due to adding a character that's currently not valid. Option 2 is easier to implement, but makes it a hidden feature. Thoughts @patriksvensson? For now, the PR has option 2, for simplicity reasons :) |
@kzu I have no problem making |
Fixed! |
Given that it's quite a common switch and extremely unlikely to be already in use for something else, we can just consider it to be the same as having entered `-h` as an arg. This adds the `?` as a valid option character name. Fixes #1547
It's second nature for me to just type
-?
to get help on stuff. Even in the GitHub CLI, typinggh -?
(although not an official option to get help) gets you the default help :).I'd say it's a common enough shorthand for help that it deserves being supported built-in.
The text was updated successfully, but these errors were encountered: