{"record":{"id":"076519f1955fc7b3","repo":"yiisoft/yii2","slug":"unknown-option-name","errorCode":null,"errorMessage":"Unknown option: --{name}","messagePattern":"Unknown option: --(.+?)","errorType":"console","errorClass":"yii\\console\\Exception","httpStatus":null,"severity":"error","filePath":"framework/console/Controller.php","lineNumber":179,"sourceCode":"                        $this->$name = preg_split('/\\s*,\\s*(?![^()]*\\))/', $value);\n                    } elseif ($default !== null) {\n                        settype($value, gettype($default));\n                        $this->$name = $value;\n                    } else {\n                        $this->$name = $value;\n                    }\n                    $this->_passedOptions[] = $name;\n                    unset($params[$name]);\n                    if (isset($kebabName)) {\n                        unset($params[$kebabName]);\n                    }\n                } elseif (!is_int($name)) {\n                    $message = Yii::t('yii', 'Unknown option: --{name}', ['name' => $name]);\n                    if (!empty($options)) {\n                        $message .= '. ' . Yii::t('yii', 'Options available: {options}', ['options' => '--' . implode(', --', $options)]);\n                    }\n\n                    throw new Exception($message);\n                }\n            }\n        }\n        if ($this->help) {\n            $route = $this->getUniqueId() . '/' . $id;\n            return Yii::$app->runAction('help', [$route]);\n        }\n\n        return parent::runAction($id, $params);\n    }\n\n    /**\n     * Binds the parameters to the action.\n     * This method is invoked by [[Action]] when it begins to run with the given parameters.\n     * This method will first bind the parameters with the [[options()|options]]\n     * available to the action. It then validates the given arguments.\n     * @param Action<static> $action the action to be bound with parameters\n     * @param array<array-key, mixed> $params the parameters to be bound to the action","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/Controller.php#L161-L197","documentation":"Error \"Unknown option: --{name}\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/Controller.php:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}