input/formats/parsers/Argv.php
protected function parseShortOption($token, values\Options $options, array& $input) : void
    {
        // Remove the starting hyphen.
        // If it's just a hyphen and nothing else, ignore it since it's most likely a mistype.
        if (empty($shortcut = substr($token, 1))) {
            return;
        }

        foreach ($this->resolveShortOption($shortcut, $options) as $name => $value) {
            $options->set($name, $value);
        }
    }
protected function parseShortOption($token, values\Options $options, array& $input) : void
    {
        // Remove the starting hyphen.
        // If it's just a hyphen and nothing else, ignore it since it's most likely a mistype.
        if (empty($shortcut = substr($token, 1))) {
            return;
        }

        foreach ($this->resolveShortOption($shortcut, $options) as $name => $value) {
            $options->set($name, $value);
        }
    }
protected function parseShortOption ( $ token , values \ Options $ options , array & $ input ) : void { // Remove the starting hyphen. // If it's just a hyphen and nothing else, ignore it since it's most likely a mistype. if ( empty ( $ shortcut = substr ( $ token , 1 ) ) ) { return ; } foreach ( $ this -> resolveShortOption ( $ shortcut , $ options ) as $ name => $ value ) { $ options -> set ( $ name , $ value ) ; } }
Parses the given token as a short option and adds it to the Options set.

@param   string          $token      The token to parse.
@param   values\Options  $options    The collection of Options being filled.
@param   array&          $input      A reference to the argv input array.
Parses the given token as a short option and adds it to the Options set .