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