{"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":null,"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/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L32-L68","documentation":"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.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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-23T08:17:48.524Z"}