Re: proper stream to aim --help output to
-----BEGIN PGP SIGNED MESSAGE-----
On Wednesday 28 January 2004 19:01, Jonathan Dowland wrote:
> Many programs offer helpful usage text when passed an invalid argument,
> or --help, -help etc. However there seems to be no consensus on which
> stream to aim the output at : stdout or stderr.
The output of a program should go to stdout. In case you call a program with
- --help, I'd expect the output to go there.
However, when I call a program with invalid arguments/input, and that programs
gives the same text as --help is response to that, I'd like the text to
appear on stderr in that case.
I doubt that many programs go to the additional effort of passing the
filedescriptor though, so I wouldn't really expect any program to behave that
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
-----END PGP SIGNATURE-----