{"record":{"id":"2584e8bbf941cd3c","repo":"tinyhumansai/openhuman","slug":"unknown-flag-other","errorCode":null,"errorMessage":"unknown flag '{other}'","messagePattern":"unknown flag '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":59,"sourceCode":"                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\nfn run_tick(args: &[String]) -> Result<()> {\n    let flags = parse_tick_flags(args)?;\n\n    let rt = tokio::runtime::Runtime::new()?;\n    rt.block_on(async {\n        let mut config = crate::openhuman::config::Config::load_or_init()\n            .await\n            .map_err(|e| anyhow!(\"config load failed: {e}\"))?;\n","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L41-L77","documentation":"Catch-all arm of `parse_tick_flags` for `subconscious tick`. Only --workspace/-w, --mode/-m and --verbose/-v are recognised; any other token (typo, stray value, unsupported flag) aborts parsing before the tick runs. Generic usage guard.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only --workspace/-w, --mode/-m, --verbose/-v with `subconscious tick`.","Run `openhuman subconscious --help` for the accepted flags.","Make sure each value-flag is followed by its value so values aren't misread as 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-23T08:17:48.524Z"}