Command::addOption()

Command addOption(string $name, string $shortcut = null, int $mode = null, string $description = '', mixed $default = null) Adds an option. Parameters string $name The option name string $shortcut The shortcut (can be null) int $mode The option mode: One of the InputOption::VALUE_* constants string $description A description text mixed $default The default value (must be null for InputOption::VALUE_NONE) Return Value Command The current instance

Command::getAliases()

array getAliases() Returns the aliases for the command. Return Value array An array of aliases for the command

Command::addUsage()

Command addUsage(string $usage) Add a command usage example. Parameters string $usage The usage, it'll be prefixed with the command name Return Value Command The current instance

Command deprecated::setErrorHandler()

Command setErrorHandler(Closure $errorHandler) Parameters Closure $errorHandler Return Value Command

Command deprecated::join()

string join() Joins bits. Return Value string

Command deprecated::length()

int length() Counts bits stored in command. Return Value int The bits count

Command deprecated::ins()

Command ins(string $label) Inserts a labeled command to feed later. Parameters string $label The unique label Return Value Command The current Command instance Exceptions RuntimeException If label already exists

Command deprecated::quote()

static string quote(string $input) Quotes input. Parameters string $input An argument string Return Value string The quoted string

Command deprecated::getErrorHandler()

Closure|null getErrorHandler() Return Value Closure|null

Command deprecated::cmd()

Command cmd(string $esc) Appends escaped special command chars. Parameters string $esc Return Value Command The current Command instance