Commit 29ccd7c3 authored by Daniel Hobi's avatar Daniel Hobi Committed by Wolfgang Denk

tools/env: fail on invalid options

Signed-off-by: default avatarDaniel Hobi <daniel.hobi@schmid-telecom.ch>
parent 122bc088
......@@ -105,6 +105,10 @@ main(int argc, char *argv[])
case 'h':
usage();
return EXIT_SUCCESS;
default: /* '?' */
fprintf(stderr, "Try `%s --help' for more information."
"\n", cmdname);
return EXIT_FAILURE;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment