tinyhumansai/openhuman · error
unknown call arg
Error message
unknown call arg: {other} What it means
CLI argument parsing in run_call_command: an unrecognized argument was passed to the call subcommand (accepted: --method, --params, -h/--help). The offending token is in `{other}`; run `openhuman call --help` for usage.
Solutions
- Use only --method and --params as documented by `openhuman call --help`
- Fix the flag spelling or remove the stray argument
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/cli.rs:482 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/c9b5e0fe8b0d2ce8.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/cli.rs:482
method = Some(
args.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --method"))?
.clone(),
);
i += 2;
}
"--params" => {
params = args
.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --params"))?
.clone();
i += 2;
}
"-h" | "--help" => {
println!("Usage: openhuman call --method <name> [--params '<json>']");
return Ok(());
}
other => return Err(anyhow::anyhow!("unknown call arg: {other}")),
}
}
let method = method.ok_or_else(|| anyhow::anyhow!("--method is required"))?;
let params = parse_json_params(¶ms).map_err(anyhow::Error::msg)?;
// Raw calls bypass namespace parsing, but not the configured memory-driver
// binding. Without this gate an absent capability could still reach a
// destructive embedded handler because plain CLI invocations have no
// ambient CoreContext to filter the registry.
crate::core::cli_capability::ensure_capability_blocking(
all::capability_for_rpc_method(&method).flatten(),
&format!("openhuman call --method {method}"),
)?;
// `call` invokes a JSON-RPC method that may run an orchestrator turn
// (e.g. `agent.chat`), so it needs the same roomy stack as the server.
let rt = tokio::runtime::Builder::new_multi_thread()View on GitHub (pinned to 7491200858)