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
Kamil Rytarowski 2013-05-11 11:39:46 +02:00 committed by Harald Hoyer
parent 15b93069bb
commit 6a736cc129
1 changed files with 1 additions and 1 deletions

View File

@ -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);