Handle unexpected commands
[tt.git] / tt.rkt
diff --git a/tt.rkt b/tt.rkt
index 19b61ec..d2363f6 100644 (file)
--- a/tt.rkt
+++ b/tt.rkt
               "Long output format"
               (set! out-format 'multi-line)]
              #:args file-paths
-             (timeline-print out-format (timeline-read order (paths->peers file-paths)))))])
+             (timeline-print out-format (timeline-read order (paths->peers file-paths)))))]
+        [command
+          (eprintf "Error: invalid command: ~v\n" command)
+          (eprintf "Please use the \"--help\" option to see a list of available commands.\n")
+          (exit 1)])
       (log-writer-stop log-writer))))
This page took 0.025662 seconds and 4 git commands to generate.