think\console\Input::addShortOption PHP Method

addShortOption() private method

添加一个短选项的值
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);
    }