lib/inch/cli/command_parser.rb in inch-0.2.2 vs lib/inch/cli/command_parser.rb in inch-0.2.3

- old
+ new

@@ -41,18 +41,11 @@ # @return [Symbol] the default command name to use when no options # are specified or attr_accessor :default_command end - self.commands = { - :list => Command::List, - :show => Command::Show, - :stats => Command::Stats, - :suggest => Command::Suggest, - } - - self.default_command = :suggest - + self.commands = {} + # Convenience method to create a new CommandParser and call {#run} # @return (see #run) def self.run(*args) new.run(*args) end