Class: MSPRelease::CLI::Help

Inherits:
Command
  • Object
show all
Defined in:
lib/msp_release/cli/help.rb

Instance Method Summary collapse

Methods included from Exec::Helpers

#exec

Instance Method Details

#runObject

Raises:

  • (Climate::HelpNeeded)


8
9
10
11
12
# File 'lib/msp_release/cli/help.rb', line 8

def run
  command_name = arguments[:command_name]
  command_class = MSPRelease::CLI.commands[command_name]
  raise Climate::HelpNeeded.new(command_class || self)
end