public function parse(array $argv)
    {
        if (empty($argv)) {
            return;
        }
        $argNum = 0;
        while ($argNum < count($argv)) {
            $argNum += $this->parseArg($argv, $argNum);
        }
        if (!empty($this->arguments)
            && $this->arguments[0] == $_SERVER['PHP_SELF']
        ) {
            array_shift($this->arguments);
        }
    }