When the user executes a program with incorrect arguments, and the program prints a 'usage' instruction to the user, should this be printed to stderr?
Many programs do it like this, gcc being one popular example. The rationale is that normal output of the program may be piped out to another program, which will get confused by the error message (which is purely intended for human consumption).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With