lib/inch/cli/command/base.rb in inch-0.4.6 vs lib/inch/cli/command/base.rb in inch-0.4.7
- old
+ new
@@ -58,11 +58,11 @@
CLI::CommandParser.default_command = name if default
CLI::CommandParser.commands[name] = self
end
def initialize
- name = self.class.to_s.split('::').last
+ name = self.class.to_s.split("::").last
options_class = Command::Options.const_get(name)
@options = options_class.new
@options.usage = usage
end
@@ -87,10 +87,10 @@
#
# @abstract
# @note Override with implementation
# @param *args [Array<String>]
def run(*args)
- raise NotImplementedError
+ fail NotImplementedError
end
# Returns a description of the command's usage pattern
#
# @return [String]