{"record":{"id":"8473bd88cbce4d57","repo":"tinyhumansai/openhuman","slug":"missing-value-for-hotkey","errorCode":null,"errorMessage":"missing value for --hotkey","messagePattern":"missing value for --hotkey","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/voice/cli.rs","lineNumber":35,"sourceCode":"/// Supported flags:\n///   --hotkey <combo>   Key combination (default from config, usually `fn`)\n///   --mode <tap|push>  Activation mode (default push)\n///   --skip-cleanup     Skip LLM post-processing on transcriptions\n///   -v / --verbose     Enable debug logging\n///   -h / --help        Print usage\npub(crate) fn run_standalone_subcommand(args: &[String]) -> Result<()> {\n    let mut hotkey: Option<String> = None;\n    let mut mode: Option<String> = None;\n    let mut skip_cleanup = false;\n    let mut verbose = false;\n    let mut i = 0usize;\n\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--hotkey\" => {\n                hotkey = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --hotkey\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--mode\" => {\n                mode = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --mode\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--skip-cleanup\" => {\n                skip_cleanup = true;\n                i += 1;\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/voice/cli.rs#L17-L53","documentation":"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.","triggerScenarios":"Thrown at src/openhuman/voice/cli.rs:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a value after --hotkey, e.g. `openhuman voice --hotkey fn+f2`","Run with -h to see the accepted flags"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}