tinyhumansai/openhuman · error · anyhow::Error
missing value for {flag}
Error message
missing value for {flag} What it means
Error "missing value for {flag}" thrown in tinyhumansai/openhuman.
Source
Thrown at src/core/memory_cli.rs:450
eprintln!("[memory:cli] namespace '{namespace}' cleared");
Ok::<_, anyhow::Error>(())
})?;
Ok(())
}
// ---------------------------------------------------------------------------
// Helpers
// ---------------------------------------------------------------------------
fn is_help(s: &str) -> bool {
matches!(s, "-h" | "--help" | "help")
}
fn next_arg(args: &[String], i: &mut usize, flag: &str) -> Result<String> {
let value = args
.get(*i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for {flag}"))?
.clone();
*i += 2;
Ok(value)
}
fn read_input(path: &str) -> Result<String> {
if path == "-" {
let mut buf = String::new();
std::io::stdin().read_to_string(&mut buf)?;
Ok(buf)
} else {
let path = PathBuf::from(path);
if !path.exists() {
return Err(anyhow::anyhow!("file not found: {}", path.display()));
}
Ok(std::fs::read_to_string(&path)?)
}
}View on GitHub (pinned to a221052e0d)
When it happens
Trigger: Thrown at src/core/memory_cli.rs:450 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16).
Data as JSON: /api/errors/43467051870db5bc.
Report an issue: GitHub.