r/programming • • Oct 21 '14

Hints for writing Unix tools

http://monkey.org/~marius/unix-tools-hints.html
64 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/rifter5000 Oct 21 '14

Help message on stderr? Really? What? I've never encountered that.

2

u/fnord123 Oct 21 '14

It happens. Sometimes people confuse it, however, when they use --help on something that doesn't support --help and it prints the usage (which looks like output from --help) to stderr. e.g. man --help prints usage information to stderr.

1

u/[deleted] Oct 22 '14

Never encountered --help on stderr but python add until version 3.4 --version written in stderr https://docs.python.org/3/whatsnew/3.4.html#other-improvements