bin/163934: [patch] usbconfig(8) sends help output to stderr
instead of stdout
brde at optusnet.com.au
Tue Jan 10 12:30:58 UTC 2012
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
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.
More information about the freebsd-bugs