]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rev: option parsing bug fixed & long options added
authorSami Kerola <kerolasa@iki.fi>
Sat, 2 Apr 2011 16:11:09 +0000 (18:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Apr 2011 08:48:35 +0000 (10:48 +0200)
commitca96c6ac52d5c25a7f3e8d2b5b433faf1ad47bc0
treeb65c9228da060a04815e6a13b2f444caba665a24
parent2226064c52af6ae5d5c8871056aede10a7d14b97
rev: option parsing bug fixed & long options added

The former getopts segment gave impression unknown options will
cause the program to exit with error and help is available with
-h. Neither work quite as designed, all unknown options made the
program to exit with success; and none of the options where
known.

The fix also has support for long options, and new --version
switch.

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