class YARD::CLI::Help
Handles help for commands @since 0.6.0
Public Instance Methods
description()
click to toggle source
# File lib/yard/cli/help.rb, line 7 def description; "Retrieves help for a command" end
run(*args)
click to toggle source
# 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