Module: Bovem::CommandMethods::Help

Included in:
Bovem::Command
Defined in:
lib/bovem/command.rb

Overview

Methods for showing help messages.

Instance Method Summary (collapse)

Instance Method Details

- (Object) show_help

Shows a help about this command.



13
14
15
16
17
18
19
20
# File 'lib/bovem/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