public function setAdditionalCliParams()
    {
        $reservedParams = explode(',', self::RESERVED_CLI_PARAMS);
        
        $params = [];
        
        $ac = 1;
        while ($ac < (count($_SERVER['argv']))) {
            $paramName = substr($_SERVER['argv'][$ac], 1);
            if (! in_array($paramName, $reservedParams)) {
                $params[$paramName] = $_SERVER['argv'][$ac + 1];
            }
            $ac += 2;
        }
        
        foreach ($params as $param => $value) {
            $this->setParam($param, $value);
        }
    }
public function setAdditionalCliParams()
    {
        $reservedParams = explode(',', self::RESERVED_CLI_PARAMS);
        
        $params = [];
        
        $ac = 1;
        while ($ac < (count($_SERVER['argv']))) {
            $paramName = substr($_SERVER['argv'][$ac], 1);
            if (! in_array($paramName, $reservedParams)) {
                $params[$paramName] = $_SERVER['argv'][$ac + 1];
            }
            $ac += 2;
        }
        
        foreach ($params as $param => $value) {
            $this->setParam($param, $value);
        }
    }
public function setAdditionalCliParams ( ) { $ reservedParams = explode ( ',' , self :: RESERVED_CLI_PARAMS ) ; $ params = [ ] ; $ ac = 1 ; while ( $ ac < ( count ( $ _SERVER [ 'argv' ] ) ) ) { $ paramName = substr ( $ _SERVER [ 'argv' ] [ $ ac ] , 1 ) ; if ( ! in_array ( $ paramName , $ reservedParams ) ) { $ params [ $ paramName ] = $ _SERVER [ 'argv' ] [ $ ac + 1 ] ; } $ ac += 2 ; } foreach ( $ params as $ param => $ value ) { $ this -> setParam ( $ param , $ value ) ; } }
sets additional parameters from the command line from the arguments
sets additional parameters from the command line from the arguments