From 659bce3603ed4c69514ba50cef699dbd98c14535 Mon Sep 17 00:00:00 2001 From: Shrutarshi Basu Date: Thu, 5 May 2016 11:30:08 -0400 Subject: [PATCH] More helpful message for unknown commands --- pollen/private/command.rkt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pollen/private/command.rkt b/pollen/private/command.rkt index 0092c84..bd7fba7 100644 --- a/pollen/private/command.rkt +++ b/pollen/private/command.rkt @@ -175,4 +175,7 @@ version print the version" (current-server-port) (make-publish-di (if (regexp-match #rx"(shit|fuck)" command) (displayln (let ([responses '("Cursing at free software? Really?" "How uncouth." "Same to you, buddy.")]) (list-ref responses (random (length responses))))) - (displayln (format "unknown command ~a" command)))) + (begin + (displayln (format "`~a` is an unknown command. Please try one of the following." command)) + (displayln "") + (handle-help))))