{"record":{"id":"0d77165473c5ae43","repo":"tinyhumansai/openhuman","slug":"missing-value-for-model","errorCode":null,"errorMessage":"missing value for --model","messagePattern":"missing value for --model","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":84,"sourceCode":"        match args[i].as_str() {\n            \"--out\" | \"-o\" => {\n                out = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --out\"))?,\n                ));\n                i += 2;\n            }\n            \"--workspace\" | \"-w\" => {\n                workspace = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --workspace\"))?,\n                ));\n                i += 2;\n            }\n            \"--model\" | \"-m\" => {\n                model = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --model\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]\");\n                println!();\n                println!(\"Render every registered agent's turn-1 system prompt into <dir>.\");\n                println!(\"`integrations_agent` is expanded into one file per currently-connected\");\n                println!(\"Composio toolkit; if no toolkit is connected, it is skipped.\");\n                std::process::exit(0);\n            }\n            other => return Err(anyhow!(\"unknown dump-all arg: {other}\")),\n        }","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L66-L102","documentation":"CLI argument parsing in the agent run command: `--model`/`-m` was given as the last argument with no following value. Usage error only — pass the model name as the next argument (e.g. `--model gpt-5`); no core was started.","triggerScenarios":"Thrown at src/core/agent_cli.rs:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the model name: `--model <name>`","Drop the flag to render prompts with the configured default model"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}