tinyhumansai/openhuman · error · anyhow::Error

unknown dump-all arg

Error message

unknown dump-all arg: {other}

What it means

Flag parsing in parse_dump_all_flags: a token matched none of the accepted flags (--out/-o, --workspace/-w, --model/-m, -v/--verbose, -h/--help), so the catch-all `other` arm rejects it. Typically a typo'd flag or an unsupported option being passed to dump-all.

Solutions

  1. Run `openhuman agent dump-all -h` to see accepted flags
  2. Fix the misspelled flag name
  3. Remove options that belong to dump-prompt, not dump-all
Defensive patterns

Strategy: validation

When it happens

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

Appendix: source

Thrown at src/core/agent_cli.rs:101

                    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}")),
        }
    }
    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,

View on GitHub (pinned to 7491200858)