mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Don't display an error on --help
This commit is contained in:
parent
19005ecf08
commit
f05f2e89a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user