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

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

Build a list of option words/flags that will have a value after them Options are returned in the format they appear as on the command line.
protected getOptionWordsWithValues ( ) : string[]
Результат string[] - eg. ['--myoption', '-m', ... ]
    protected function getOptionWordsWithValues()
    {
        $strings = array();
        foreach ($this->getAllOptions() as $option) {
            if ($option->isValueRequired()) {
                $strings[] = '--' . $option->getName();
                if ($option->getShortcut()) {
                    $strings[] = '-' . $option->getShortcut();
                }
            }
        }
        return $strings;
    }