Is there a guideline when to use the error when writing a CLIcommand-line application.? To my surprise, I didn't find anything when googling it.
In particular, the question I'm concerned with right now is whether to use sdtoutstdout or stderrstderr when the user called the program with illegal arguments. However, a more comprehensive answer is very much appreciated because this surely won't be the only case in which a clear rule is needed to write a program which behaves in the way it's expected to by the user.