Class: YARD::CLI::Help
Overview
Handles help for commands
Instance Method Summary collapse
Methods inherited from Command
#common_options, #load_script, #parse_options, run
Instance Method Details
#description ⇒ Object
6 |
# File 'lib/yard/cli/help.rb', line 6 def description; "Retrieves help for a command" end |
#run(*args) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/yard/cli/help.rb', line 8 def run(*args) if args.first && cmd = CommandParser.commands[args.first.to_sym] cmd.run('--help') else puts "Command #{args.first} not found." if args.first CommandParser.run('--help') end end |