bin/shiba in shiba-0.2.3 vs bin/shiba in shiba-0.3.0

- old
+ new

@@ -4,11 +4,11 @@ APP = File.basename(__FILE__) commands = { "explain" => "Generate a report from logged SQL queries", - "check" => "Check staged files for query problems", + "review" => "Review changed files for query problems", } global = OptionParser.new do |opts| opts.banner = "usage: #{APP} [--help] <command> [<args>]" opts.separator "" @@ -29,11 +29,11 @@ puts global.to_s exit end if !commands.key?(command) - puts "#{APP}: '#{command}' is not a '#{APP}' command. See '#{APP} --help'." - exit 1 + puts "#{APP}: '#{command}' is not a '#{APP}' command. See '#{APP} --help'." + exit 2 end path = File.join(File.dirname(__FILE__), command) Kernel.exec(path, *ARGV) \ No newline at end of file