Class: Mongify::CLI::HelpCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/mongify/cli/help_command.rb

Overview

A command to display usage information for this application.

Instance Method Summary collapse

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