{"record":{"id":"c9b5e0fe8b0d2ce8","repo":"tinyhumansai/openhuman","slug":"unknown-call-arg-other","errorCode":null,"errorMessage":"unknown call arg: {other}","messagePattern":"unknown call arg: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":482,"sourceCode":"                method = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow::anyhow!(\"missing value for --method\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--params\" => {\n                params = args\n                    .get(i + 1)\n                    .ok_or_else(|| anyhow::anyhow!(\"missing value for --params\"))?\n                    .clone();\n                i += 2;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman call --method <name> [--params '<json>']\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown call arg: {other}\")),\n        }\n    }\n\n    let method = method.ok_or_else(|| anyhow::anyhow!(\"--method is required\"))?;\n    let params = parse_json_params(&params).map_err(anyhow::Error::msg)?;\n\n    // Raw calls bypass namespace parsing, but not the configured memory-driver\n    // binding. Without this gate an absent capability could still reach a\n    // destructive embedded handler because plain CLI invocations have no\n    // ambient CoreContext to filter the registry.\n    crate::core::cli_capability::ensure_capability_blocking(\n        all::capability_for_rpc_method(&method).flatten(),\n        &format!(\"openhuman call --method {method}\"),\n    )?;\n\n    // `call` invokes a JSON-RPC method that may run an orchestrator turn\n    // (e.g. `agent.chat`), so it needs the same roomy stack as the server.\n    let rt = tokio::runtime::Builder::new_multi_thread()","sourceCodeStart":464,"sourceCodeEnd":500,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L464-L500","documentation":"CLI argument parsing in run_call_command: an unrecognized argument was passed to the call subcommand (accepted: --method, --params, -h/--help). The offending token is in `{other}`; run `openhuman call --help` for usage.","triggerScenarios":"Thrown at src/core/cli.rs:482 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only --method and --params as documented by `openhuman call --help`","Fix the flag spelling or remove the stray 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"}