tinyhumansai/openhuman · error
unknown flag
Error message
unknown flag '{other}' What it means
Catch-all arm of `parse_tick_flags` for `subconscious tick`. Only --workspace/-w, --mode/-m and --verbose/-v are recognised; any other token (typo, stray value, unsupported flag) aborts parsing before the tick runs. Generic usage guard.
Solutions
- Use only --workspace/-w, --mode/-m, --verbose/-v with `subconscious tick`.
- Run `openhuman subconscious --help` for the accepted flags.
- Make sure each value-flag is followed by its value so values aren't misread as flags.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/subconscious_cli.rs:59 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/2584e8bbf941cd3c.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/subconscious_cli.rs:59
workspace = Some(PathBuf::from(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --workspace"))?,
));
i += 2;
}
"--mode" | "-m" => {
mode = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --mode"))?
.clone(),
);
i += 2;
}
"--verbose" | "-v" => {
verbose = true;
i += 1;
}
other => return Err(anyhow!("unknown flag '{other}'")),
}
}
Ok(TickFlags {
workspace,
mode,
verbose,
})
}
fn run_tick(args: &[String]) -> Result<()> {
let flags = parse_tick_flags(args)?;
let rt = tokio::runtime::Runtime::new()?;
rt.block_on(async {
let mut config = crate::openhuman::config::Config::load_or_init()
.await
.map_err(|e| anyhow!("config load failed: {e}"))?;
View on GitHub (pinned to 7491200858)