Class: CLI::Command

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

Overview

Command line usage for the suppression generator

Instance Method Summary collapse

Instance Method Details

#runObject



34
35
36
37
38
39
40
41
42
# File 'lib/CLI/command.rb', line 34

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