4 ms·
3. With no input when input is required. This is a special case of 2, but is distinctly different since no context can be inferred. In my opinion the program
by consp 3y ago
3. With no input when input is required.
This is a special case of 2, but is distinctly different since no context can be inferred.
In my opinion the program should fail successfully (as in non zero return) since no command was given. I'm highly annoyed when kubectl starts spuwing help text when I forget the command somewhere in a script.
Can we also find a "special place" for programs who always output the help text to stderr no matter what and have pages of options? I don't want to be redirecting before beging able to grep...