From 396a5dc26b3396a7a7ed549e42afd0c77d1b7c5a Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 6 May 2014 22:17:54 -0700 Subject: [PATCH 1/2] Whitespace --- bin/ebooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ebooks b/bin/ebooks index 5afae92..9e11ff9 100755 --- a/bin/ebooks +++ b/bin/ebooks @@ -174,7 +174,7 @@ STR def self.command(args) usage = < ebooks consume [corpus_path2] [...] ebooks gen [input] From d67e376c730c8a0faa26896b2563c9487598e9bd Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Tue, 6 May 2014 22:17:57 -0700 Subject: [PATCH 2/2] 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