From d67e376c730c8a0faa26896b2563c9487598e9bd Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 6 May 2014 22:17:57 -0700 Subject: [PATCH] Barf on invalid commands --- bin/ebooks | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ebooks b/bin/ebooks index 9e11ff9..a2309c3 100755 --- a/bin/ebooks +++ b/bin/ebooks @@ -197,6 +197,9 @@ STR when "archive" then archive(args[1], args[2]) when "tweet" then tweet(args[1], args[2]) when "jsonify" then jsonify(args[1..-1]) + else + log usage + exit 1 end end end