tinyhumansai/openhuman · error
missing value for --file
Error message
missing value for --file
What it means
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.
Source
Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:65
let mut content: Option<String> = None;
let mut file: Option<String> = None;
let mut node_id: Option<String> = None;
let mut rest = Vec::new();
let mut i = 0;
while i < args.len() {
match args[i].as_str() {
"--content" | "-c" => {
let val = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --content"))?;
content = Some(val.clone());
i += 2;
}
"--file" | "-f" => {
let val = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --file"))?;
file = Some(val.clone());
i += 2;
}
"--node-id" | "--node" => {
let val = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --node-id"))?;
node_id = Some(val.clone());
i += 2;
}
"-v" | "--verbose" => {
verbose = true;
i += 1;
}
"-h" | "--help" => {
rest.push(args[i].clone());
i += 1;
}View on GitHub (pinned to 7491200858)
Solutions
- Provide a path after --file, e.g. `--file ./notes.md`
- Verify the file exists before passing it
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:65 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/da727ef1d5433b9b.
Report an issue: GitHub.