{"record":{"id":"350cf936619413b1","repo":"tinyhumansai/openhuman","slug":"missing-value-for-out","errorCode":null,"errorMessage":"missing value for --out","messagePattern":"missing value for --out","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":70,"sourceCode":"struct DumpAllFlags {\n    out: PathBuf,\n    workspace: Option<PathBuf>,\n    model: Option<String>,\n    verbose: bool,\n}\n\nfn parse_dump_all_flags(args: &[String]) -> Result<DumpAllFlags> {\n    let mut out: Option<PathBuf> = None;\n    let mut workspace: Option<PathBuf> = None;\n    let mut model: Option<String> = None;\n    let mut verbose = false;\n    let mut i = 0usize;\n    while i < args.len() {\n        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            }","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L52-L88","documentation":"Flag parsing in parse_dump_all_flags: `--out`/`-o` appeared as the last token, so args.get(i + 1) returned None and the expected directory path value is missing. The parser fails immediately with this anyhow error rather than proceeding with a partial flag state.","triggerScenarios":"Thrown at src/core/agent_cli.rs:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the value: `openhuman agent dump-all --out <dir>`","Check for a missing space or a trailing flag when composing the command"],"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"}