Class: Mongify::CLI::Command::Help

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

Overview

A command to display usage information for this application.

Instance Method Summary collapse

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