Flags that begin with "--" should not be treated as end of args

This commit is contained in:
Cody Peter Mello 2018-10-09 11:46:57 -07:00
parent 2dc7e5ff1a
commit 9b093ea2d0
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
exit(0); exit(0);
break; break;
} }
if (strncmp(argv[1], "--", 2) == 0) { /* explicit end of args */ if (strcmp(argv[1], "--") == 0) { /* explicit end of args */
argc--; argc--;
argv++; argv++;
break; break;