[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: proper stream to aim --help output to



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 
way.

Uli
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAGQXpwVdGSYi8Mq8RAhmSAJ9Jz4d+bCgON7bpfn1x5h95k4hdIwCfbLFl
Rp5F1/qKE+LgKvzpKoriI6o=
=bSok
-----END PGP SIGNATURE-----



Reply to: