Class: CC::CLI::Help

Inherits:
Command show all
Defined in:
lib/cc/cli/help.rb

Constant Summary collapse

ARGUMENT_LIST =
"[command]".freeze
SHORT_HELP =
"Display help information.".freeze
HELP =
"#{SHORT_HELP}\n" \
"\n" \
"    no arguments   Show help summary for all commands.\n" \
"    [command]      Show help for specific commands. Can be specified multiple times.".freeze

Constants inherited from Command

Command::CODECLIMATE_YAML, Command::NAMESPACE

Instance Method Summary collapse

Methods inherited from Command

[], abstract!, abstract?, all, command_name, #execute, help, inherited, #initialize, short_help, synopsis

Methods included from Output

#colorize, #fatal, #rainbow, #say, #success, #terminal, #warn

Constructor Details

This class inherits a constructor from CC::CLI::Command

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
# File 'lib/cc/cli/help.rb', line 13

def run
  if @args.any?
    @args.each do |command|
      show_help(command)
    end
  else
    show_help_summary
  end
end