tinyhumansai/openhuman · error · anyhow::Error
--out is required
Error message
--out <dir> is required
What it means
Post-parse validation in run_dump_all: parsing succeeded but the --out flag was never supplied, so the destination directory for the rendered per-agent prompt files is unknown. The command refuses to write anywhere by default and asks for an explicit target.
Solutions
- Add `--out <dir>` (or `-o <dir>`) to the dump-all invocation
- Ensure the directory is writable — the command writes one file per registered agent
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/agent_cli.rs:105 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/6faa6bc8653a13c1.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/agent_cli.rs:105
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}")),
}
}
Ok(DumpAllFlags {
out: out.ok_or_else(|| anyhow!("--out <dir> is required"))?,
workspace,
model,
verbose,
})
}
fn run_dump_all(args: &[String]) -> Result<()> {
let flags = parse_dump_all_flags(args)?;
init_quiet_logging(flags.verbose);
log::debug!(
"[agent-cli] run_dump_all entry: out={} workspace={:?} model={:?}",
flags.out.display(),
flags.workspace,
flags.model
);
let rt = tokio::runtime::Builder::new_multi_thread()View on GitHub (pinned to 7491200858)