{"record":{"id":"9bfff773b32c608b","repo":"yiisoft/yii2","slug":"no-help-for-unknown-sub-command-name","errorCode":null,"errorMessage":"No help for unknown sub-command \"$name\".","messagePattern":"No help for unknown sub-command \"\\$name\"\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/HelpController.php","lineNumber":407,"sourceCode":"            $scriptName = $this->getScriptName();\n            $this->stdout(\"\\nTo see the detailed information about individual sub-commands, enter:\\n\");\n            $this->stdout(\"\\n  $scriptName \" . $this->ansiFormat('help', Console::FG_YELLOW) . ' '\n                . $this->ansiFormat('<sub-command>', Console::FG_CYAN) . \"\\n\\n\");\n        }\n    }\n\n    /**\n     * Displays the detailed information of a command action.\n     * @param Controller $controller the controller instance\n     * @param string $actionID action ID\n     * @throws Exception if the action does not exist\n     */\n    protected function getSubCommandHelp($controller, $actionID)\n    {\n        $action = $controller->createAction($actionID);\n        if ($action === null) {\n            $name = $this->ansiFormat(rtrim($controller->getUniqueId() . '/' . $actionID, '/'), Console::FG_YELLOW);\n            throw new Exception(\"No help for unknown sub-command \\\"$name\\\".\");\n        }\n\n        $description = $controller->getActionHelp($action);\n        if ($description !== '') {\n            $this->stdout(\"\\nDESCRIPTION\\n\", Console::BOLD);\n            $this->stdout(\"\\n$description\\n\\n\");\n        }\n\n        $this->stdout(\"\\nUSAGE\\n\\n\", Console::BOLD);\n        $scriptName = $this->getScriptName();\n        if ($action->id === $controller->defaultAction) {\n            $this->stdout($scriptName . ' ' . $this->ansiFormat($controller->getUniqueId(), Console::FG_YELLOW));\n        } else {\n            $this->stdout($scriptName . ' ' . $this->ansiFormat($action->getUniqueId(), Console::FG_YELLOW));\n        }\n\n        $args = $controller->getActionArgsHelp($action);\n        foreach ($args as $name => $arg) {","sourceCodeStart":389,"sourceCodeEnd":425,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/HelpController.php#L389-L425","documentation":"Error \"No help for unknown sub-command \"$name\".\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/HelpController.php:407 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"}