protected function parseArgs(string $arg)
    {
        if ($this->_lastVariadic) {
            return $this->set($this->_lastVariadic, $arg, true);
        }

        if (!$argument = \reset($this->_arguments)) {
            return $this->set(null, $arg);
        }

        $this->setValue($argument, $arg);

        // Otherwise we will always collect same arguments again!
        if (!$argument->variadic()) {
            \array_shift($this->_arguments);
        }
    }
protected function parseArgs(string $arg)
    {
        if ($this->_lastVariadic) {
            return $this->set($this->_lastVariadic, $arg, true);
        }

        if (!$argument = \reset($this->_arguments)) {
            return $this->set(null, $arg);
        }

        $this->setValue($argument, $arg);

        // Otherwise we will always collect same arguments again!
        if (!$argument->variadic()) {
            \array_shift($this->_arguments);
        }
    }
protected function parseArgs ( string $ arg ) { if ( $ this -> _lastVariadic ) { return $ this -> set ( $ this -> _lastVariadic , $ arg , true ) ; } if ( ! $ argument = \ reset ( $ this -> _arguments ) ) { return $ this -> set ( null , $ arg ) ; } $ this -> setValue ( $ argument , $ arg ) ; // Otherwise we will always collect same arguments again! if ( ! $ argument -> variadic ( ) ) { \ array_shift ( $ this -> _arguments ) ; } }
Parse single arg.

@param string $arg

@return mixed
Parse single arg .