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
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to