tinyhumansai/openhuman · warning

unknown dump-all arg: {other}

Error message

unknown dump-all arg: {other}

What it means

Thrown by parse_dump_all_flags when a token of `openhuman agent dump-all` matches none of --out/-o, --workspace/-w, --model/-m, -v/--verbose, -h/--help. Any unrecognized argument aborts the parse, and the value forms do not validate that the next token is not itself a flag.

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 a221052e0d)

Solutions

  1. Run `openhuman agent dump-all --help` and use only --out/-o, --workspace/-w, --model/-m, -v.
  2. Check for a missing value before an unknown-arg error: `--out` immediately followed by another `--flag` means the value was forgotten.
  3. Prefer the long forms exactly as spelled (hyphenated, e.g. --workspace not --work-space).

Example fix

# before
openhuman agent dump-all --output ./p

# after
openhuman agent dump-all --out ./p
Defensive patterns

Strategy: validation

Validate before calling

const DUMP_ALL_FLAGS: &[&str] = &["--out", "-o", "--workspace", "-w", "--model", "-m", "-v", "--verbose", "-h", "--help"];
fn flags_known(args: &[String]) -> bool {
    args.iter().step_by(2).all(|a| DUMP_ALL_FLAGS.contains(&a.as_str()) || !a.starts_with('-'))
}

Try / catch

match run_agent_command(&args) {
    Err(e) if e.to_string().contains("unknown dump-all arg") => {
        eprintln!("run `openhuman agent dump-all --help` for accepted flags");
    }
    other => other?,
}

Prevention

When it happens

Trigger: Typo'd or unsupported flags such as `--output`, `--dir`, `--format json`; positional extras; or a value-consuming flag whose value is missing so the following flag token is swallowed as a value and the token after it becomes 'unknown'.

Common situations: Guessing flag names from other CLIs (docker-style `--output`), copy-pasting a command from older/newer docs, or `--out --model foo` where '--model' is silently taken as the out path and 'foo' then errors as unknown.

Related errors


AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16). Data as JSON: /api/errors/ac43a7c129b6da9d. Report an issue: GitHub.