src/Argument/Parser.php
protected function trySettingArgumentValue($argv, $key, $passed_argument)
    {
        list($name, $value) = $this->getNameAndValue($passed_argument);

        // Look for the argument in our defined $arguments
        // and assign their value.
        if (!($argument = $this->findPrefixedArgument($name))) {
            return $argv;
        }

        // We found an argument key, so take it out of the array.
        unset($argv[$key]);

        return $this->setArgumentValue($argv, $argument, $key, $value);
    }
protected function trySettingArgumentValue($argv, $key, $passed_argument)
    {
        list($name, $value) = $this->getNameAndValue($passed_argument);

        // Look for the argument in our defined $arguments
        // and assign their value.
        if (!($argument = $this->findPrefixedArgument($name))) {
            return $argv;
        }

        // We found an argument key, so take it out of the array.
        unset($argv[$key]);

        return $this->setArgumentValue($argv, $argument, $key, $value);
    }
protected function trySettingArgumentValue ( $ argv , $ key , $ passed_argument ) { list ( $ name , $ value ) = $ this -> getNameAndValue ( $ passed_argument ) ; // Look for the argument in our defined $arguments // and assign their value. if ( ! ( $ argument = $ this -> findPrefixedArgument ( $ name ) ) ) { return $ argv ; } // We found an argument key, so take it out of the array. unset ( $ argv [ $ key ] ) ; return $ this -> setArgumentValue ( $ argv , $ argument , $ key , $ value ) ; }
Attempt to set the an argument's value and remove applicable
arguments from array

@param array $argv
@param int $key
@param string $passed_argument

@return array The new $argv
Attempt to set the an argument s value and remove applicable arguments from array