Class CommandOption
A command option in the console arguments.
The command names and command options determine which command is executed.
In the example below, the console arguments contain the command name "server" and the command option "delete":
$ console server --delete localhost
$ console server -d localhost
The last part "localhost" is the argument to the "server --delete" command.
- Webmozart\Console\Api\Args\Format\AbstractOption
- Webmozart\Console\Api\Args\Format\CommandOption
Namespace: Webmozart\Console\Api\Args\Format
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
See:
Located at Api/Args/Format/CommandOption.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
See:
Webmozart\Console\Api\Args\Format\CommandName
, Webmozart\Console\Api\Args\Format\ArgsFormat
Located at Api/Args/Format/CommandOption.php
public
|
#
__construct( string $longName, string|null $shortName = null, array $aliases = array(), integer $flags = 0, string $description = null )
Creates the command option. |
public
string[]
|
|
public
string[]
|
getDescription(),
getLongName(),
getShortName(),
isLongNamePreferred(),
isShortNamePreferred()
|
PREFER_LONG_NAME,
PREFER_SHORT_NAME
|
$flags
|