tinyhumansai/openhuman · error · anyhow::Error

unknown dump-prompt arg

Error message

unknown dump-prompt arg: {other}

What it means

Flag parsing in parse_dump_flags: a token matched none of the accepted options (--agent/-a, --toolkit/-t, --out/-o, --workspace/-w, --model/-m, --json, --with-tools, -v, -h) and hit the catch-all `other` arm, which rejects unknown arguments to dump-prompt.

Solutions

  1. Run `openhuman agent dump-prompt -h` for the accepted flag list
  2. Fix the typo or move options that belong to dump-all
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/agent_cli.rs:219 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/65c4223b487cc455. Report an issue: GitHub.

Appendix: source

Thrown at src/core/agent_cli.rs:219

                i += 2;
            }
            "--json" => {
                out.json = true;
                i += 1;
            }
            "--with-tools" => {
                out.with_tools = true;
                i += 1;
            }
            "-v" | "--verbose" => {
                out.verbose = true;
                i += 1;
            }
            "-h" | "--help" => {
                print_dump_prompt_help();
                std::process::exit(0);
            }
            other => return Err(anyhow!("unknown dump-prompt arg: {other}")),
        }
        let _ = i; // silence unused-warning in the `help` branch
    }
    Ok(out)
}

fn run_dump_prompt(args: &[String]) -> Result<()> {
    let flags = parse_dump_flags(args)?;
    let agent = flags.agent.clone().ok_or_else(|| {
        anyhow!("--agent <id> is required (e.g. `orchestrator`, `integrations_agent`, `welcome`)")
    })?;

    if agent == "integrations_agent" && flags.toolkit.is_none() {
        return Err(anyhow!(
            "--toolkit <slug> is required when --agent is `integrations_agent` \
             (e.g. `--toolkit gmail`). Run `composio list_connection` to see active slugs."
        ));
    }

View on GitHub (pinned to 7491200858)