From: Siraaj Khandkar Date: Wed, 24 Mar 2021 23:56:28 +0000 (-0400) Subject: Handle unexpected commands X-Git-Tag: 0.17.1 X-Git-Url: https://git.xandkar.net/?p=tt.git;a=commitdiff_plain;h=5db4881e20101e551e7432d5c818adfad948c304 Handle unexpected commands --- diff --git a/info.rkt b/info.rkt index 1bd8a52..7c2f504 100644 --- 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 ")) (define deps diff --git a/tt.rkt b/tt.rkt index 19b61ec..d2363f6 100644 --- a/tt.rkt +++ b/tt.rkt @@ -573,5 +573,9 @@ "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))))