{"record":{"id":"da727ef1d5433b9b","repo":"tinyhumansai/openhuman","slug":"missing-value-for-file","errorCode":null,"errorMessage":"missing value for --file","messagePattern":"missing value for --file","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tree/tree_runtime/cli.rs","lineNumber":65,"sourceCode":"    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\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                rest.push(args[i].clone());\n                i += 1;\n            }","sourceCodeStart":47,"sourceCodeEnd":83,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tree/tree_runtime/cli.rs#L47-L83","documentation":"The tree-summarizer option parser saw `--file` (or `-f`) at the end of the arguments with no value following. Like the other flag operands, the parser indexes args[i+1] for the path; absence means the flag was passed without its file-path operand and parsing stops with this guard.","triggerScenarios":"Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a path after --file, e.g. `--file ./notes.md`","Verify the file exists before passing it"],"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"}