Class: Mongify::CLI::HelpCommand
- Inherits:
-
Object
- Object
- Mongify::CLI::HelpCommand
- Defined in:
- lib/mongify/cli/help_command.rb
Overview
A command to display usage information for this application.
Instance Method Summary collapse
-
#execute(view) ⇒ Object
Executes the help command.
-
#initialize(parser) ⇒ HelpCommand
constructor
A new instance of HelpCommand.
Constructor Details
#initialize(parser) ⇒ HelpCommand
Returns a new instance of HelpCommand.
7 8 9 |
# File 'lib/mongify/cli/help_command.rb', line 7 def initialize(parser) @parser = parser end |
Instance Method Details
#execute(view) ⇒ Object
Executes the help command
11 12 13 14 |
# File 'lib/mongify/cli/help_command.rb', line 11 def execute(view) view.output(@parser.to_s) view.report_success end |