CommandLineHandler.getCommand

Get an instance of the requested command.

If there is no command in the argument list, the run command is returned by default.

If the --help argument previously handled by prepareOptions, this.options.help is already true, with this returning the requested command. If no command was requested (just dub --help) this returns the help command.

struct CommandLineHandler
getCommand
(
string name
)

Parameters

name string

the command name

Return Value

Type: Command

Returns the command instance if it exists, null otherwise

Meta