Class: Teems::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/teems/commands/help.rb

Overview

Displays help information for commands

Instance Attribute Summary

Attributes inherited from Base

#options, #positional_args, #runner

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Teems::Commands::Base

Instance Method Details

#executeObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/teems/commands/help.rb', line 22

def execute
  topic = positional_args.first

  if topic
    show_command_help(topic)
  else
    show_general_help
  end

  0
end