"David A. Holland" <dholl...@netbsd.org> writes: > Module Name: src > Committed By: dholland > Date: Sat Nov 27 00:42:58 UTC 2010 > > Modified Files: > src/usr.bin/hexdump: odsyntax.c > > Log Message: > PR 44156: od -? prints usage for "hexdump" rather than "od" > > > To generate a diff of this commit: > cvs rdiff -u -r1.26 -r1.27 src/usr.bin/hexdump/odsyntax.c > > +static void > +odusage(void) > +{ > + (void)warnx("Usage: od [-aBbcDdeFfHhIiLlOovXx] [-A base] [-j skip]" > + " [-N length]"); > + (void)warnx(" [-t type_string] [[+]offset[.][Bb]] [file ...]"); > + exit(1); > +}
I still think that "warnx" is wrong way. It is inconsistent with all the rest system, try comparing this with output of "hexdump -?", "tar -?", "ls -?" etc etc. -- HE CE3OH...