Class: Slk::Commands::Help
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
Constructor Details
This class inherits a constructor from Slk::Commands::Base
Instance Method Details
#execute ⇒ Object
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 |