{"record":{"id":"9d174590a5a6bc0b","repo":"tinyhumansai/openhuman","slug":"unknown-query-arg-other","errorCode":null,"errorMessage":"unknown query arg: {other}","messagePattern":"unknown query arg: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/memory_cli.rs","lineNumber":337,"sourceCode":"                query = Some(next_arg(args, &mut i, \"--query\")?);\n            }\n            \"--limit\" | \"-l\" => {\n                let raw = next_arg(args, &mut i, \"--limit\")?;\n                limit = raw\n                    .parse::<u32>()\n                    .map_err(|e| anyhow::anyhow!(\"invalid --limit: {e}\"))?;\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\n                    \"Usage: openhuman memory query --namespace <ns> --query <text> [--limit <n>] [-v]\"\n                );\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown query arg: {other}\")),\n        }\n    }\n\n    let namespace =\n        namespace.ok_or_else(|| anyhow::anyhow!(\"--namespace is required for query\"))?;\n    let query = query.ok_or_else(|| anyhow::anyhow!(\"--query is required\"))?;\n\n    crate::core::logging::init_for_cli_run(verbose, crate::core::logging::CliLogDefault::Global);\n\n    let rt = tokio::runtime::Builder::new_multi_thread()\n        .enable_all()\n        .build()?;\n\n    let result = rt.block_on(async {\n        let client = create_memory_client(\"query\").await?;\n        client\n            .query_namespace(&namespace, &query, limit)\n            .await","sourceCodeStart":319,"sourceCodeEnd":355,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/memory_cli.rs#L319-L355","documentation":"Catch-all arm of the `openhuman memory query` argument loop. Any token that is not --namespace/-n, --query/-q, --limit/-l, -v/--verbose or -h/--help lands here and aborts parsing. It is a generic usage guard against typos or misplaced values, e.g. a forgotten value leaving a stray flag token.","triggerScenarios":"Thrown at src/core/memory_cli.rs:337 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only the documented flags: --namespace/-n, --query/-q, --limit/-l, -v/--verbose.","Run `openhuman memory query --help` for the exact usage line.","Ensure every flag that takes a value is followed by that value so it is not misparsed as an unknown flag."],"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"}