aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Winston2024-05-25 21:48:13 -0400
committerBen Winston2024-05-25 21:48:13 -0400
commit2968b86d39d5b9b1d108636934430f2e3e9a4d00 (patch)
tree3b4704c5be2d5f6b560c5cdff87c218801ed2a83
parent78e0727b4fc5586327752290f9eb56eaf58ff5b1 (diff)
helpful message for unrecognized command
-rw-r--r--booki.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/booki.c b/booki.c
index 79563fe..9a532fe 100644
--- a/booki.c
+++ b/booki.c
@@ -551,6 +551,9 @@ int main(int argc, char* argv[]) {
open(booki_file);
} else if (strcmp(argv[1], "search") == 0) {
remaining = search(argc - 1, argv + 1, booki_file);
+ } else {
+ printf("unknown subcommand: '%s'\n", argv[1]);
+ return 1;
}
return 0;