public function parseCliArgs($server = null)
    {
        $server || $server = $this->_SERVER;

        if (!isset($server['argv'])) {
            throw new \Exception('$_SERVER["argv"] is not available');
        }

        $args = array_slice($server['argv'], 1);

        return $args ? '/' . implode('/', $args) : '';
    }
public function parseCliArgs($server = null)
    {
        $server || $server = $this->_SERVER;

        if (!isset($server['argv'])) {
            throw new \Exception('$_SERVER["argv"] is not available');
        }

        $args = array_slice($server['argv'], 1);

        return $args ? '/' . implode('/', $args) : '';
    }
public function parseCliArgs ( $ server = null ) { $ server || $ server = $ this -> _SERVER ; if ( ! isset ( $ server [ 'argv' ] ) ) { throw new \ Exception ( '$_SERVER["argv"] is not available' ) ; } $ args = array_slice ( $ server [ 'argv' ] , 1 ) ; return $ args ? '/' . implode ( '/' , $ args ) : '' ; }
Formats cli args like a uri

@return string
@throws \Exception
Formats cli args like a uri