Permalink
Browse files

options: make arguments required, not optional

The switches are optional, but if you use a switch, then the argument
is required.
  • Loading branch information...
1 parent 127a2e9 commit 7c9d7a9c9f9a63485f4539d2467440dd2e3d6641 @rosslagerwall committed Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/options.c
View
@@ -49,7 +49,7 @@ parse_options(int argc, char **argv)
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "r::u:p::l::fh", long_options,
+ c = getopt_long(argc, argv, "r:u:p:l:fh", long_options,
&option_index);
if (c == -1)
break;

0 comments on commit 7c9d7a9

Please sign in to comment.