-
Notifications
You must be signed in to change notification settings - Fork 94
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 a flag for help #121
Comments
I think we should reserve some flags, and it will be applicable for all the programs except legacy ones. If your program does nothing without any arguments, it can be left to program author what to return if no arguments are provided in command line, but help must only be printed when -h or --help is supplied. Or, for e.g. lets say unix |
I never saw |
Not that I'm a huge maintainer/contributor in CLI apps 😅 but I have some out there and I'm using |
Not weighing in on the
It's ultimately up to you, but the guidelines directly advise against this in a couple of places ("Don't overload |
whoopsie 😅 |
There are some other considerations, and there isn't a defined standard, but lots of guidelines:
The documentation for
I'm assuming this is where this de-facto standard came in. As I think its good to add this in and say that along with |
this is bullshit. only follow posix/gnu standard please.
|
Hey @burhan, thanks for doing some research on this for us! I have a pretty strong point of view about this. With CLI Guidlines, we are asking the question: And, I do not think However, if an unknown flag is passed in, help should be displayed. Some backgroundI think the reason we have Meanwhile, there's I think the MS standard that mentions When I was poking around for examples just now, I noticed that the
So, |
-?
is a common flag for helpThe text was updated successfully, but these errors were encountered: