tinyhumansai/openhuman · error · anyhow::Error
missing value for --model
Error message
missing value for --model
What it means
CLI argument parsing in the agent run command: `--model`/`-m` was given as the last argument with no following value. Usage error only — pass the model name as the next argument (e.g. `--model gpt-5`); no core was started.
Solutions
- Provide the model name: `--model <name>`
- Drop the flag to render prompts with the configured default model
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/agent_cli.rs:84 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/0d77165473c5ae43.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/agent_cli.rs:84
match args[i].as_str() {
"--out" | "-o" => {
out = Some(PathBuf::from(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --out"))?,
));
i += 2;
}
"--workspace" | "-w" => {
workspace = Some(PathBuf::from(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --workspace"))?,
));
i += 2;
}
"--model" | "-m" => {
model = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --model"))?
.clone(),
);
i += 2;
}
"-v" | "--verbose" => {
verbose = true;
i += 1;
}
"-h" | "--help" => {
println!("Usage: openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]");
println!();
println!("Render every registered agent's turn-1 system prompt into <dir>.");
println!("`integrations_agent` is expanded into one file per currently-connected");
println!("Composio toolkit; if no toolkit is connected, it is skipped.");
std::process::exit(0);
}
other => return Err(anyhow!("unknown dump-all arg: {other}")),
}View on GitHub (pinned to 7491200858)