Micah Cowan <[email protected]> writes: > On 02/23/2011 01:23 AM, Giuseppe Scrivano wrote: >> Hello Gilles, >> >> thanks for your patch. I am not sure it is a good idea to use stderr >> to prompt a message to the user. I would just inhibit the message when >> -O- is used. > > Personally, I agree with Gilles; in every single instance other than > here, we always write information meant for the user to stderr (I > believe for the reason he cites: so as not to interfere with the output > in the case of -O-). I'd say we should either blindly write to stderr in > all cases, or else consider specifically finding the terminal and > writing to that (ttyname?)
hm.. in functions like print_usage (main.c), I see we differentiate between an error message and an usage string. When the user specifies --ask-password then the password prompt is a desired behaviour rather than an error. In what cases do we use stderr for something different than an error message? Giuseppe
