tinyhumansai/openhuman · error
missing value for --mode
Error message
missing value for --mode
What it means
Value-presence guard in `parse_tick_flags` for `subconscious tick`. When --mode/-m is the last token on the command line there is no value to read and the parser aborts. Note the value itself is validated later (simple|aggressive); this error only means the value is absent.
Solutions
- Pass the mode right after the flag: `--mode simple` or `--mode aggressive` (short form -m).
- Omit --mode to keep the configured default mode.
- Re-check that the next token wasn't swallowed by shell quoting.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/subconscious_cli.rs:50 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/7335538c04e9f4a3.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/subconscious_cli.rs:50
fn parse_tick_flags(args: &[String]) -> Result<TickFlags> {
let mut workspace: Option<PathBuf> = None;
let mut mode: Option<String> = None;
let mut verbose = false;
let mut i = 0;
while i < args.len() {
match args[i].as_str() {
"--workspace" | "-w" => {
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,
})
}
View on GitHub (pinned to 7491200858)