Class | YARD::CLI::CommandParser |
In: |
lib/yard/cli/command_parser.rb
|
Parent: | Object |
This class parses a command name out of the yard CLI command and calls that command in the form:
$ yard command_name [options]
If no command or arguments are specified, or if the arguments immediately begin with a +—opt+ (not +—help+), the {default_command} will be used (which itself defaults to +:doc+).
To add a custom command via plugin, create a mapping in {commands} from the Symbolic command name to the {Command} class that implements the command. To implement a command, see the documentation for the {Command} class.
@see Command @see commands @see default_command
Runs the {Command} object matching the command name of the first argument. @return [void]