Don't display an error on --help

This commit is contained in:
Tim Schlueter 2018-08-23 21:40:25 -07:00
parent 19005ecf08
commit f05f2e89a6

View File

@ -194,6 +194,11 @@ int main(int argc, char *argv[])
if (!strcmp(cmd, "list"))
return cmd_list(argc, argv);
if (!strcmp(cmd, "--help")) {
usage();
return 0;
}
printf("Unknown command %s\n", cmd);
usage();
exit(EXIT_FAILURE);