Module: Mamertes::CommandMethods::Help

Included in:
Mamertes::Command
Defined in:
lib/mamertes/command.rb

Overview

Methods for showing help messages.

Instance Method Summary collapse

Instance Method Details

#show_helpObject

Shows a help about this command.



13
14
15
16
17
18
19
20
# File 'lib/mamertes/command.rb', line 13

def show_help
  console = is_application? ? self.console : application.console
  is_application? ? show_help_application_summary(console) : show_help_command_summary(console)
  show_help_banner(console) if has_banner?
  show_help_options(console) if has_options?
  show_help_commands(console) if has_commands?
  Kernel.exit(0)
end