{"record":{"id":"4ea0d260a260c8bc","repo":"tinyhumansai/openhuman","slug":"missing-value-for-content","errorCode":null,"errorMessage":"missing value for --content","messagePattern":"missing value for --content","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tree/tree_runtime/cli.rs","lineNumber":58,"sourceCode":"    content: Option<String>,\n    file: Option<String>,\n    node_id: Option<String>,\n}\n\nfn parse_opts(args: &[String]) -> Result<(CliOpts, Vec<String>)> {\n    let mut verbose = false;\n    let mut content: Option<String> = None;\n    let mut file: Option<String> = None;\n    let mut node_id: Option<String> = None;\n    let mut rest = Vec::new();\n    let mut i = 0;\n\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--content\" | \"-c\" => {\n                let val = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --content\"))?;\n                content = Some(val.clone());\n                i += 2;\n            }\n            \"--file\" | \"-f\" => {\n                let val = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --file\"))?;\n                file = Some(val.clone());\n                i += 2;\n            }\n            \"--node-id\" | \"--node\" => {\n                let val = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --node-id\"))?;\n                node_id = Some(val.clone());\n                i += 2;\n            }\n            \"-v\" | \"--verbose\" => {","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tree/tree_runtime/cli.rs#L40-L76","documentation":"The tree-summarizer option parser encountered `--content` (or `-c`) as the last token with no following value. The parser expects the next argv entry to be the content string; hitting end-of-args means the flag was supplied without its operand, and the parse aborts before subcommand execution.","triggerScenarios":"Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply a value after --content, e.g. `--content \"some text\"`","Use --file path instead if the content is large","Check quoting — a consumed next token may have been eaten by the shell"],"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-14T00:17:10.932Z"}