Method: Inch::CLI::Command::Base.run

Defined in:
lib/inch/cli/command/base.rb

.run(*args) ⇒ Command::Base

Helper method to run an instance with the given args

Returns:

See Also:



49
50
51
52
53
54
# File 'lib/inch/cli/command/base.rb', line 49

def self.run(*args)
  kwargs = args.last.is_a?(Hash) ? args.pop : {}
  command = new(kwargs)
  command.run(*args)
  command
end