Fix parsing command line arguments
Adjust correctly the *optstring argument of getopt_long. Add support for a missing option -v|--verbose and drop unknown options -D, -I and -L.master
parent
15b93069bb
commit
6a736cc129
|
|
@ -619,7 +619,7 @@ static int parse_argv(int argc, char *argv[])
|
|||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
while ((c = getopt_long(argc, argv, "adhloD:DHILR", options, NULL)) != -1) {
|
||||
while ((c = getopt_long(argc, argv, "adhloD:HR", options, NULL)) != -1) {
|
||||
switch (c) {
|
||||
case ARG_VERSION:
|
||||
puts(PROGRAM_VERSION_STRING);
|
||||
|
|
|
|||
Loading…
Reference in New Issue