tinyhumansai/openhuman · error · anyhow::Error
missing value for --toolkit
Error message
missing value for --toolkit
What it means
Flag parsing in parse_dump_flags: `--toolkit`/`-t` was passed at the end of the argument list with no toolkit name value after it. The integrations_agent prompt is expanded per connected Composio toolkit, so a dangling --toolkit cannot be resolved and parsing aborts.
Solutions
- Add the toolkit slug after the flag: `--toolkit <slug>`
- Omit the flag to expand all connected toolkits
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/agent_cli.rs:183 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/cb0eaed9dba2114f.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/agent_cli.rs:183
json: false,
with_tools: false,
verbose: false,
};
let mut i = 0usize;
while i < args.len() {
match args[i].as_str() {
"--agent" | "-a" => {
out.agent = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --agent"))?
.clone(),
);
i += 2;
}
"--toolkit" | "-t" => {
out.toolkit = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --toolkit"))?
.clone(),
);
i += 2;
}
"--workspace" | "-w" => {
out.workspace = Some(PathBuf::from(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --workspace"))?,
));
i += 2;
}
"--model" | "-m" => {
out.model = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --model"))?
.clone(),
);
i += 2;View on GitHub (pinned to 7491200858)