Commit b5080840 authored by Jaime Velasco Juan's avatar Jaime Velasco Juan Committed by Kim Vandry

Fix bug with -- parameter

parent e70fd8ad
......@@ -605,11 +605,14 @@ int main (int argc, char **argv)/*{{{*/
} else if (!strcmp(*argv, "-h") ||
!strcmp(*argv, "--help")) {
do_help = 1;
} else if ((*argv)[0] == '-') {
fprintf(stderr, "Unrecognized option %s\n", *argv);
} else if (!strcmp(*argv, "--")) {
/* End of args */
argc--;
argv++;
break;
} else if ((*argv)[0] == '-') {
fprintf(stderr, "Unrecognized option %s\n", *argv);
exit(3);
} else {
/* standard args start */
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment