src/Console/ConsoleOptionParser.php
public function getOptionNames()
    {
        $names = [];
        foreach ($this->options as $option) {
            $names[] = $option->getLongName();
            $names[] = $option->getShortName();
        }

        return $names;
    }
public function getOptionNames()
    {
        $names = [];
        foreach ($this->options as $option) {
            $names[] = $option->getLongName();
            $names[] = $option->getShortName();
        }

        return $names;
    }
public function getOptionNames ( ) { $ names = [ ] ; foreach ( $ this -> options as $ option ) { $ names [ ] = $ option -> getLongName ( ) ; $ names [ ] = $ option -> getShortName ( ) ; } return $ names ; }
Returns an array containing the long and short names of all options.

@return array The short and long names of the options
Returns an array containing the long and short names of all options .