Handle unexpected commands 0.17.1
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 24 Mar 2021 23:56:28 +0000 (19:56 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 24 Mar 2021 23:56:28 +0000 (19:56 -0400)
info.rkt
tt.rkt

index 1bd8a52..7c2f504 100644 (file)
--- a/info.rkt
+++ b/info.rkt
@@ -6,7 +6,7 @@
 (define pkg-desc
   "twtxt client")
 (define version
-  "0.17.0")
+  "0.17.1")
 (define pkg-authors
   '("Siraaj Khandkar <siraaj@khandkar.net>"))
 (define deps
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.02057 seconds and 4 git commands to generate.