3 ms·
Yeah, but if it's run interactively a quick hint (and not the full help message) can be useful.
by notpushkin 3y ago
Yeah, but if it's run interactively a quick hint (and not the full help message) can be useful.
- hnben 3y agointeractive and non-interactive use should diverge as little as possible. Personal, I like it, when a program directs me to its help-command, when I give it a bad option, like > openssl blabla Invalid command 'blabla'; type "help" for a list.
- kazinator 3y agoYou can't tell that in the program itself. Whether standard input is a TTY isn't a reliable indicator in either way. Though if you insist on spewing help text along side diagnostics, at least refraining from doing that to a non-TTY device might not be a bad idea.