Skip to content

Commit

Permalink
mxqkill: Die when unrecognized options are found
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 8, 2015
1 parent 72a9d00 commit c082000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int main(int argc, char *argv[])
assert(res != -1);

mx_getopt_init(&optctl, argc-1, &argv[1], opts);
optctl.flags = MX_FLAG_STOPONUNKNOWN|MX_FLAG_STOPONNOOPT;
optctl.flags = MX_FLAG_STOPONNOOPT;

while ((opt=mx_getopt(&optctl, &i)) != MX_GETOPT_END) {
if (opt == MX_GETOPT_ERROR) {
Expand Down

0 comments on commit c082000

Please sign in to comment.