{"record":{"id":"77dac5055f3acb75","repo":"tinyhumansai/openhuman","slug":"unknown-list-arg-other","errorCode":null,"errorMessage":"unknown list arg: {other}","messagePattern":"unknown list arg: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":397,"sourceCode":"            }\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            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman agent list [--workspace <path>] [--json] [-v]\");\n                println!();\n                println!(\"  List every built-in agent plus any custom `<workspace>/agents/*.toml` overrides.\");\n                return Ok(());\n            }\n            other => return Err(anyhow!(\"unknown list arg: {other}\")),\n        }\n    }\n\n    // Silence the logger so Config::load_or_init and AgentDefinitionRegistry::load\n    // don't write warnings/info to stdout, which would corrupt --json output.\n    // (The project's CLI logger writes to stdout, not stderr.)\n    init_quiet_logging(verbose);\n\n    // Resolve workspace-custom overrides the same way the runtime does\n    // at spawn time. When --workspace is explicit we load against it\n    // directly; otherwise the registry helper does the Config dance.\n    let registry = if let Some(ws) = workspace {\n        AgentDefinitionRegistry::load(&ws)?\n    } else {\n        let rt = tokio::runtime::Builder::new_current_thread()\n            .enable_all()\n            .build()?;\n        rt.block_on(AgentDefinitionRegistry::load_for_default_workspace())?","sourceCodeStart":379,"sourceCodeEnd":415,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L379-L415","documentation":"Generic argument-parse guard in `run_agent_list`: the token does not match any recognized flag of the `openhuman agent list` subcommand. It names the offending token; accepted flags are --workspace/-w, --json, -v/--verbose, -h/--help.","triggerScenarios":"Thrown at src/core/agent_cli.rs:397 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the spelling of the flag against `openhuman agent list --help`","Remove the unrecognized argument"],"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"}