{"record":{"id":"7335538c04e9f4a3","repo":"tinyhumansai/openhuman","slug":"missing-value-for-mode","errorCode":null,"errorMessage":"missing value for --mode","messagePattern":"missing value for --mode","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":50,"sourceCode":"\nfn parse_tick_flags(args: &[String]) -> Result<TickFlags> {\n    let mut workspace: Option<PathBuf> = None;\n    let mut mode: Option<String> = None;\n    let mut verbose = false;\n    let mut i = 0;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--workspace\" | \"-w\" => {\n                workspace = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --workspace\"))?,\n                ));\n                i += 2;\n            }\n            \"--mode\" | \"-m\" => {\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            \"--verbose\" | \"-v\" => {\n                verbose = true;\n                i += 1;\n            }\n            other => return Err(anyhow!(\"unknown flag '{other}'\")),\n        }\n    }\n    Ok(TickFlags {\n        workspace,\n        mode,\n        verbose,\n    })\n}\n","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/a221052e0df5b1f7598fceba7329fd1af95d6699/src/core/subconscious_cli.rs#L32-L68","documentation":"Error \"missing value for --mode\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a221052e0df5b1f7598fceba7329fd1af95d6699","analyzedAt":"2026-08-16T12:47:06.542Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}