Skip to content
Snippets Groups Projects
Commit 509f8aa0 authored by Petr Baudis's avatar Petr Baudis
Browse files

compctl: Show usage on unrecognized options

parent 6dd3914e
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,10 @@ main(int argc, char *argv[]) ...@@ -233,6 +233,10 @@ main(int argc, char *argv[])
} else if (!strcmp(cmd, "--help")) { } else if (!strcmp(cmd, "--help")) {
help(stdout); help(stdout);
} else {
help(stderr);
return EXIT_FAILURE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment