]> git.ipfire.org Git - thirdparty/util-linux.git/commit
getopt: options struct, usage and version outputs
authorSami Kerola <kerolasa@iki.fi>
Mon, 13 Jun 2011 11:47:29 +0000 (13:47 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sat, 25 Jun 2011 14:19:36 +0000 (16:19 +0200)
commit283f8f0256655b73071290b92c58d998e883260a
treee8e9c8d8fdb03ffd7a1ccb5f5b577248f72a2ebf
parent8796caca6f5d22563c7e021844073b2abd4e5d90
getopt: options struct, usage and version outputs

Move commands own option structure from global scope into main(),
and make it as read-only. The usage() ouput mechanims is made to
look more like other commands.

Misleading old version string `getopt (enhanced) 1.1.4' is
replaced to look like the other util-linux version outputs. If
anyone is relying on identifying the command by that string he
should use -T option instead.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
getopt/getopt.c