think\console\input\Definition::shortcutToName PHP Method

shortcutToName() private method

根据短名称获取选项名
private shortcutToName ( string $shortcut ) : string
$shortcut string 短名称
return string
    private function shortcutToName($shortcut)
    {
        if (!isset($this->shortcuts[$shortcut])) {
            throw new \InvalidArgumentException(sprintf('The "-%s" option does not exist.', $shortcut));
        }
        return $this->shortcuts[$shortcut];
    }