1
0
forked from drath/libratbag

tools: replace getopt magic number 2 with 'optional_argument'

So *that's* what 2 means...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-05-05 09:49:22 +10:00
committed by bentiss
parent 698d8ab365
commit 0902e3420f

View File

@@ -2038,8 +2038,8 @@ main(int argc, char **argv)
int c;
int option_index = 0;
static struct option opts[] = {
{ "verbose", 2, 0, OPT_VERBOSE },
{ "help", 0, 0, OPT_HELP },
{ "verbose", optional_argument, 0, OPT_VERBOSE },
{ "help", no_argument, 0, OPT_HELP },
};
c = getopt_long(argc, argv, "+h", opts, &option_index);