PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Приватные методы
Описание методов
__construct()
публичный Метод
Creates the command option.
getLongAliases()
публичный Метод
Returns all long alias names.
public getLongAliases ( ) : string[] |
Результат |
string[] |
The long alias names. |
getShortAliases()
публичный Метод
Returns all short alias names.
public getShortAliases ( ) : string[] |
Результат |
string[] |
The short alias names. |