Class AbstractOption
Base class for command line options.
Direct known subclasses
Webmozart\Console\Api\Args\Format\CommandOption, Webmozart\Console\Api\Args\Format\Option
Abstract
Namespace: Webmozart\Console\Api\Args\Format
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Args/Format/AbstractOption.php
Namespace: Webmozart\Console\Api\Args\Format
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Api/Args/Format/AbstractOption.php
public
|
#
__construct( string $longName, string|null $shortName = null, integer $flags = 0, string $description = null )
Creates a new option. |
public
string
|
|
public
boolean
|
#
isLongNamePreferred( )
Returns whether using the long name is preferred over using the short name. |
public
string
|
|
public
boolean
|
#
isShortNamePreferred( )
Returns whether using the short name is preferred over using the long name. |
public
string
|
integer |
PREFER_LONG_NAME
Flag: Prefer usage of the long option name. |
#
1
|
integer |
PREFER_SHORT_NAME
Flag: Prefer usage of the short option name. |
#
2
|
protected
integer
|
$flags
|