Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Handle unknown options #14

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Split
View
@@ -193,6 +193,9 @@ main(int argc, const char **argv){
continue;
}
+ // unknown option
+ if (arg[0] == '-') usage();
+
// cmd args
if (len == ARGS_MAX) {
fprintf(stderr, "number of arguments exceeded %d\n", len);