{"record":{"id":"2f120a5302be6fe3","repo":"yiisoft/yii2","slug":"no-help-for-unknown-command-name","errorCode":null,"errorMessage":"No help for unknown command \"$name\".","messagePattern":"No help for unknown command \"\\$name\"\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/HelpController.php","lineNumber":62,"sourceCode":" */\nclass HelpController extends Controller\n{\n    /**\n     * Displays available commands or the detailed information\n     * about a particular command.\n     *\n     * @param string|null $command The name of the command to show help about.\n     * If not provided, all available commands will be displayed.\n     * @return int the exit status\n     * @throws Exception if the command for help is unknown\n     */\n    public function actionIndex($command = null)\n    {\n        if ($command !== null) {\n            $result = Yii::$app->createController($command);\n            if ($result === false) {\n                $name = $this->ansiFormat($command, Console::FG_YELLOW);\n                throw new Exception(\"No help for unknown command \\\"$name\\\".\");\n            }\n\n            list($controller, $actionID) = $result;\n\n            $actions = $this->getActions($controller);\n            if ($actionID !== '' || count($actions) === 1 && $actions[0] === $controller->defaultAction) {\n                $this->getSubCommandHelp($controller, $actionID);\n            } else {\n                $this->getCommandHelp($controller);\n            }\n        } else {\n            $this->getDefaultHelp();\n        }\n\n        return ExitCode::OK;\n    }\n\n    /**","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/HelpController.php#L44-L80","documentation":"Error \"No help for unknown command \"$name\".\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/HelpController.php:62 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"}