src/Parser.php
protected function parseArgv($argv)
    {
        foreach ($this->argv as $arg) {
            $parts = explode('=', $arg);
            if (! isset($parts[1])) {
                continue;
            }
            $value = $parts[1];
            $key   = strtr($parts[0], [
                '-' => ''
            ]);

            if (array_key_exists($key, $this->supportedArgs)) {
                $this->parsedArgs[$key] = $value;
            }

        }

        return $this;
    }
protected function parseArgv($argv)
    {
        foreach ($this->argv as $arg) {
            $parts = explode('=', $arg);
            if (! isset($parts[1])) {
                continue;
            }
            $value = $parts[1];
            $key   = strtr($parts[0], [
                '-' => ''
            ]);

            if (array_key_exists($key, $this->supportedArgs)) {
                $this->parsedArgs[$key] = $value;
            }

        }

        return $this;
    }
protected function parseArgv ( $ argv ) { foreach ( $ this -> argv as $ arg ) { $ parts = explode ( '=' , $ arg ) ; if ( ! isset ( $ parts [ 1 ] ) ) { continue ; } $ value = $ parts [ 1 ] ; $ key = strtr ( $ parts [ 0 ] , [ '-' => '' ] ) ; if ( array_key_exists ( $ key , $ this -> supportedArgs ) ) { $ this -> parsedArgs [ $ key ] = $ value ; } } return $ this ; }
Parses an array of arguments.

@param  array $argv The raw array of arguments.

@return PhpCli\Parser Returns $this, for object-chaining.
Parses an array of arguments .