Method: Inch::CLI::CommandParser#run

Defined in:
lib/inch/cli/command_parser.rb

#run(*args) ⇒ Command::Base

Runs the Inch::CLI::Command object matching the command name of the first argument.

Returns:



58
59
60
61
62
63
64
# File 'lib/inch/cli/command_parser.rb', line 58

def run(*args)
  if ['--help', '-h'].include?(args.join)
    list_commands
  else
    run_command(*args)
  end
end