tinyhumansai/openhuman · error
missing value for --hotkey
Error message
missing value for --hotkey
What it means
Hand-rolled CLI parsing for `openhuman voice`: the --hotkey flag was the last token with no following argument to consume as the key combo. The command aborts before any runtime or config load.
Source
Thrown at src/openhuman/voice/cli.rs:35
/// Supported flags:
/// --hotkey <combo> Key combination (default from config, usually `fn`)
/// --mode <tap|push> Activation mode (default push)
/// --skip-cleanup Skip LLM post-processing on transcriptions
/// -v / --verbose Enable debug logging
/// -h / --help Print usage
pub(crate) fn run_standalone_subcommand(args: &[String]) -> Result<()> {
let mut hotkey: Option<String> = None;
let mut mode: Option<String> = None;
let mut skip_cleanup = false;
let mut verbose = false;
let mut i = 0usize;
while i < args.len() {
match args[i].as_str() {
"--hotkey" => {
hotkey = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --hotkey"))?
.clone(),
);
i += 2;
}
"--mode" => {
mode = Some(
args.get(i + 1)
.ok_or_else(|| anyhow!("missing value for --mode"))?
.clone(),
);
i += 2;
}
"--skip-cleanup" => {
skip_cleanup = true;
i += 1;
}
"-v" | "--verbose" => {
verbose = true;View on GitHub (pinned to 7491200858)
Solutions
- Provide a value after --hotkey, e.g. `openhuman voice --hotkey fn+f2`
- Run with -h to see the accepted flags
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/voice/cli.rs:35 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/8473bd88cbce4d57.
Report an issue: GitHub.