Merge pull request #21 from melloc/end-of-args

Flags that begin with "--" should not be treated as end of args
This commit is contained in:
onetrueawk 2019-01-21 14:10:23 -05:00 committed by GitHub
commit d3d7d3d82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
break;
}
if (strncmp(argv[1], "--", 2) == 0) { /* explicit end of args */
if (strcmp(argv[1], "--") == 0) { /* explicit end of args */
argc--;
argv++;
break;