bin/ebooks in twitter_ebooks-2.2.4 vs bin/ebooks in twitter_ebooks-2.2.5
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+# encoding: utf-8
require 'twitter_ebooks'
$debug = true
@@ -172,11 +173,11 @@
end
end
def self.command(args)
usage = <<STR
-Usage:
+Usage:
ebooks new <reponame>
ebooks consume <corpus_path> [corpus_path2] [...]
ebooks gen <model_path> [input]
ebooks score <model_path> <input>
ebooks archive <@user> <outpath>
@@ -195,9 +196,12 @@
when "gen" then gen(args[1], args[2..-1].join(' '))
when "score" then score(args[1], args[2..-1].join(' '))
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
Ebooks.command(ARGV)