Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 23:30:54 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org, Bruce Evans <brde@optusnet.com.au>
Subject:   Re: bin/163934: [patch] usbconfig(8) sends help output to stderr instead of stdout
Message-ID:  <20120110232500.K1940@besplex.bde.org>
In-Reply-To: <alpine.BSF.2.00.1201091514320.33267@wonkity.com>
References:  <201201082105.q08L5EXm038909@red.freebsd.org> <20120109183017.T1220@besplex.bde.org> <alpine.BSF.2.00.1201091514320.33267@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 9 Jan 2012, Warren Block wrote:

> The user can request usage() output with -h or --help or something
> equivalent, and that output should go to stdout because it's not an error and 
> that data is what was requested.  IMO, of course.

This should probably be implemented by passing a FILE pointer to usage().

> usbconfig doesn't actually have a -h option, usage() output is just a default 
> fall-through.

Ugh.  It documents -h in its man page.  Its code doesn't even use getopt().
It uses a home made parser that accepts almost any random character as an
equivalent for -h.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120110232500.K1940>