Class: Slk::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/slk/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 Slk::Commands::Base

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/slk/commands/help.rb', line 7

def execute
  topic = positional_args.first

  if topic
    show_command_help(topic)
  else
    show_general_help
  end

  0
end