3 ms·
Anything a user tries to do to ask for help is correct behavior that you need to support. It is a crime to tell the user “you asked for help incorrectly”. I su
by bvisness 3y ago
Anything a user tries to do to ask for help is correct behavior that you need to support. It is a crime to tell the user “you asked for help incorrectly”.
I suggest supporting at least all of the following: -h, -help, --help, -?, /h, /?, help, <no flag> (if possible). Other flags don’t have to follow these rules, but I think help can be an exception.
And maybe you should print the help any time the user enters a bad command.
- Hizonner 3y agoJust to be clear, I'm not saying programs shouldn't provide help in response to "`-?`". It sounds like a good idea to me, because that would be an obvious guess for what a user would mean by putting a question mark there. And, as you say, some help is a good response to any unrecognized option. I'm just saying that I hadn't realized programs did that. And I've been around a long, long time. I guess I'm just blind.