src/Parser.php
public function getArg($name = '')
    {
        if (!isset($this->parsedArgs[$name])) {
            throw new \PhpCli\Exception(self::ERR_NO_ARG_BY_NAME);
        }

        return $this->parsedArgs[$name];
    }
public function getArg($name = '')
    {
        if (!isset($this->parsedArgs[$name])) {
            throw new \PhpCli\Exception(self::ERR_NO_ARG_BY_NAME);
        }

        return $this->parsedArgs[$name];
    }
public function getArg ( $ name = '' ) { if ( ! isset ( $ this -> parsedArgs [ $ name ] ) ) { throw new \ PhpCli \ Exception ( self :: ERR_NO_ARG_BY_NAME ) ; } return $ this -> parsedArgs [ $ name ] ; }
Gets an argument by name

@param string $name The name of the argument to get.

@return string The value of the argument.
Gets an argument by name