Class: CLI::Command

Inherits:
Object
  • Object
show all
Includes:
TTY::Option
Defined in:
lib/CLI/command.rb

Instance Method Summary collapse

Instance Method Details

#runObject



337
338
339
340
341
342
343
344
345
346
# File 'lib/CLI/command.rb', line 337

def run
  if params[:help]
    print help
  elsif params.errors.any?
    puts params.errors.summary
  else
    execute_command
    # pp params.to_h
  end
end