lib/cc/cli/runner.rb in codeclimate-0.9.7 vs lib/cc/cli/runner.rb in codeclimate-0.10.0

- old
+ new

@@ -3,11 +3,10 @@ require "safe_yaml" module CC module CLI class Runner - def self.run(argv) new(argv).run rescue => ex $stderr.puts("error: (#{ex.class}) #{ex.message}") @@ -42,12 +41,12 @@ nil end def command_name case command - when nil, '-h', '-?', '--help' then 'Help' - when '-v', '--version' then 'Version' + when nil, "-h", "-?", "--help" then "Help" + when "-v", "--version" then "Version" else command.sub(":", "::").underscore.camelize end end def command_arguments @@ -55,9 +54,8 @@ end def command @args.first end - end end end