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