]> git.ipfire.org Git - thirdparty/util-linux.git/commit
getopt: make nonoptions optstring comment correct
authorSami Kerola <kerolasa@iki.fi>
Sat, 6 Dec 2014 10:47:53 +0000 (10:47 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 8 Dec 2014 20:07:00 +0000 (20:07 +0000)
commitd01f47f6f5842ac656b0d3fe01a6414af399f1ca
tree228a7c21fefcf278566180184b0c1414a35e40f7
parentd458000dea7ff96c63532b317fce631847768877
getopt: make nonoptions optstring comment correct

From manual page: 'If the first character of optstring is '-', then each
nonoption argv-element is handled as if it were the argument of an option
with character code 1.'

Reference: http://man7.org/linux/man-pages/man3/getopt.3.html
CC: Frodo Looijaard <frodo@frodo.looijaard.name>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/getopt.c