tinyhumansai/openhuman · error · anyhow::Error
empty value for
Error message
empty value for {arg} What it means
Validation guard in the shared flag parser: the flag's value was present but trimmed to the empty string (e.g. `--model=` or a whitespace-only next argument), which is rejected rather than silently applying an empty model/provider.
Solutions
- Provide a non-empty value for the flag
- Remove the flag entirely if the default should be used
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:171 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/1e99bee19680b8f2.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:171
};
let value = match inline_value {
Some(value) => value,
None => {
i += 1;
let value = args
.get(i)
.map(String::as_str)
.ok_or_else(|| anyhow::anyhow!("missing value for {arg}"))?;
if value.starts_with('-') {
return Err(anyhow::anyhow!("missing value for {arg}"));
}
value
}
};
let value = value.trim();
if value.is_empty() {
return Err(anyhow::anyhow!("empty value for {arg}"));
}
match target {
Some("model") => parsed.model = Some(value.to_string()),
Some("provider") => parsed.provider = Some(value.to_string()),
_ => unreachable!("launch option target is fixed above"),
}
i += 1;
}
parsed.args = args[i..].to_vec();
Ok(parsed)
}
#[cfg(feature = "tui")]
fn run_tui_from_cli(args: &[String]) -> Result<()> {
crate::tui::run_from_cli(args)
}
View on GitHub (pinned to 7491200858)