Method | Description | |
---|---|---|
__construct ( string $name = null, string $shortName = null, |
Creates a new configuration. | |
buildArgsFormat ( |
||
getLongName ( ) : string | Alias of {@link getName()}. | |
getShortName ( ) : string | Returns the short option name of the command. | |
isLongNamePreferred ( ) : boolean | Returns whether the long name should be preferred over the short name. | |
isShortNamePreferred ( ) : boolean | Returns whether the short name should be preferred over the long name. | |
setLongName ( string $name ) : static | Alias of {@link setName()}. | |
setName ( string $name ) : static | Sets the name of the command. | |
setPreferLongName ( ) : static | Marks the long name to be preferred over the short name. | |
setPreferShortName ( ) : static | Marks the short name to be preferred over the long name. | |
setShortName ( string $shortName ) : static | Sets the short option name of the command. |
public __construct ( string $name = null, string $shortName = null, |
||
$name | string | The long option name of the command. |
$shortName | string | The short option name of the command. |
$parentConfig | The parent configuration. | |
$applicationConfig | The application configuration. |
public buildArgsFormat ( |
||
$baseFormat |
public getLongName ( ) : string | ||
return | string | The command name. |
public getShortName ( ) : string | ||
return | string | The short option name. |
public isLongNamePreferred ( ) : boolean | ||
return | boolean | Returns `true` if the long name should be preferred over the short name. |
public isShortNamePreferred ( ) : boolean | ||
return | boolean | Returns `true` if the short name should be preferred over the long name. |
public setLongName ( string $name ) : static | ||
$name | string | The command name. |
return | static | The current instance. |
public setPreferLongName ( ) : static | ||
return | static | The current instance. |
public setPreferShortName ( ) : static | ||
return | static | The current instance. |
public setShortName ( string $shortName ) : static | ||
$shortName | string | The short option name. |
return | static | The current instance. |