Stecman\Component\Symfony\Console\BashCompletion\CompletionHandler::completeForOptionShortcuts PHP Метод

completeForOptionShortcuts() защищенный Метод

If the shortcut exists it will be completed, but a list of possible shortcuts is never returned for completion.
protected completeForOptionShortcuts ( ) : array | false
Результат array | false
    protected function completeForOptionShortcuts()
    {
        $word = $this->context->getCurrentWord();
        if (strpos($word, '-') === 0 && strlen($word) == 2) {
            $definition = $this->command ? $this->command->getNativeDefinition() : $this->application->getDefinition();
            if ($definition->hasShortcut(substr($word, 1))) {
                return array($word);
            }
        }
        return false;
    }