lib/inch/cli/command/base.rb in inch-0.4.10 vs lib/inch/cli/command/base.rb in inch-0.5.0.rc1
- 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
@@ -85,12 +85,12 @@
# Runs the command with the given +args+
#
# @abstract
# @note Override with implementation
- # @param *_args [Array<String>]
- def run(*_args)
- fail NotImplementedError
+ # @param *args [Array<String>]
+ def run(*args)
+ raise NotImplementedError
end
# Returns a description of the command's usage pattern
#
# @return [String]