private addShortOption ( string $shortcut, mixed $value ) | ||
$shortcut | string | 短名称 |
$value | mixed | 值 |
private function addShortOption($shortcut, $value)
{
if (!$this->definition->hasShortcut($shortcut)) {
throw new \RuntimeException(sprintf('The "-%s" option does not exist.', $shortcut));
}
$this->addLongOption($this->definition->getOptionForShortcut($shortcut)->getName(), $value);
}