PHP Class Webmozart\Console\Api\Args\Format\CommandOption
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.
显示文件
Open project: webmozart/console
Class Usage Examples
Public Methods
Private Methods
Method Details
__construct()
public method
Creates the command option.
getLongAliases()
public method
Returns all long alias names.
public getLongAliases ( ) : string[] |
return |
string[] |
The long alias names. |
getShortAliases()
public method
Returns all short alias names.
public getShortAliases ( ) : string[] |
return |
string[] |
The short alias names. |