tinyhumansai/openhuman · error
unknown graph arg
Error message
unknown graph arg: {other} What it means
CLI argument parsing in the `openhuman memory graph` subcommand: an unrecognized option was passed (accepted: --namespace/-n, --subject/-s, --predicate/-p, -v/--verbose, -h/--help). The offending token is in `{other}`; the printed usage shows the accepted filters. No query was executed.
Solutions
- Use only --namespace, --subject, --predicate as filters
- Check spelling with `openhuman memory graph --help`
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/memory_cli.rs:279 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/db12322e61696edf.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/memory_cli.rs:279
namespace = Some(next_arg(args, &mut i, "--namespace")?);
}
"--subject" | "-s" => {
subject = Some(next_arg(args, &mut i, "--subject")?);
}
"--predicate" | "-p" => {
predicate = Some(next_arg(args, &mut i, "--predicate")?);
}
"-v" | "--verbose" => {
verbose = true;
i += 1;
}
"-h" | "--help" => {
println!(
"Usage: openhuman memory graph [--namespace <ns>] [--subject <s>] [--predicate <p>] [-v]"
);
return Ok(());
}
other => return Err(anyhow::anyhow!("unknown graph arg: {other}")),
}
}
crate::core::logging::init_for_cli_run(verbose, crate::core::logging::CliLogDefault::Global);
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()?;
let result = rt.block_on(async {
let client = create_memory_client("graph").await?;
client
.graph_query(
namespace.as_deref(),
subject.as_deref(),
predicate.as_deref(),
)
.awaitView on GitHub (pinned to 7491200858)