aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;