Re: Bug#295328: general: Help messages to stderr should be banned
"Francesco P. Lovergine" <firstname.lastname@example.org> schrieb:
> On Tue, Feb 15, 2005 at 07:38:08AM -0600, John Hasler wrote:
>> Francesco P. Lovergine writes:
>> > It depends on programs, sometimes the same usage function is used for
>> > either --help or invalid options.
>> Sure, but the output should still be directed correctly.
> Quite difficult if the function is the same. In both cases it uses stderr.
if [ "$1" = "STDERR" ]; then
case "$1" in
Translation to Perl, Python, C, whatever, and to multiple arguments is
left to the reader as an afternoon exercise.
Inst. f. Biochemie der Univ. Zürich