CraftCli\Console\GlobalArgvInput::parse PHP Méthode

parse() protected méthode

protected parse ( )
    protected function parse()
    {
        $parsed = $tokens = $this->originalTokens;
        while (null !== ($token = array_shift($parsed))) {
            $this->setTokens(array($token));
            try {
                parent::parse();
            } catch (RuntimeException $e) {
                // ignore these errors, otherwise re-throw it
                if (!preg_match('/^Too many arguments\\.$|^No arguments expected|does not exist\\.$/', $e->getMessage())) {
                    throw $e;
                }
            }
        }
        $this->setTokens($tokens);
    }
GlobalArgvInput