Skip to content

Commit

Permalink
mxqsub: Handle unrecognized options better
Browse files Browse the repository at this point in the history
this prevent 'mxqsub --help.' to be send to the cluster.. ;)
  • Loading branch information
mariux committed May 21, 2015
1 parent 48c63c0 commit 97b381b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ int main(int argc, char *argv[])
/******************************************************************/

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 97b381b

Please sign in to comment.