protected function resolveParameters(array $get = [], array $globals = [])
    {
        if ($this->method() != 'CLI' || !isset($globals['argc'], $globals['argv']) || $globals['argc'] <= 1) {
            return $get;
        }

        $cli = [];
        for ($i = 1; $i < $globals['argc']; $i++) {
            if (preg_match_all('/^-+([^=]+)(=(.+))?$/i', $globals['argv'][$i], $arg, PREG_SET_ORDER)) {
                $cli[$arg[0][1]] = isset($arg[0][3]) ? $this->unquote($arg[0][3]) : true;
            } else {
                $cli[] = $this->unquote($globals['argv'][$i]);
            }
        }

        $this->path = array_shift($cli);

        return array_merge($get, $cli);
    }