{"record":{"id":"5a0c0a21dc6f3b92","repo":"tinyhumansai/openhuman","slug":"unknown-namespaces-arg-other","errorCode":null,"errorMessage":"unknown namespaces arg: {other}","messagePattern":"unknown namespaces arg: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/memory_cli.rs","lineNumber":373,"sourceCode":"            .await\n            .map_err(anyhow::Error::msg)\n    })?;\n\n    println!(\"{result}\");\n    Ok(())\n}\n\n/// `openhuman memory namespaces`\nfn run_namespaces(args: &[String]) -> Result<()> {\n    let mut verbose = false;\n    for arg in args {\n        match arg.as_str() {\n            \"-v\" | \"--verbose\" => verbose = true,\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman memory namespaces [-v]\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown namespaces arg: {other}\")),\n        }\n    }\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(\"namespaces\").await?;\n        client.list_namespaces().await.map_err(anyhow::Error::msg)\n    })?;\n\n    for ns in &result {\n        println!(\"{ns}\");\n    }\n    Ok(())","sourceCodeStart":355,"sourceCodeEnd":391,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/memory_cli.rs#L355-L391","documentation":"Catch-all arm of the `openhuman memory namespaces` subcommand's argument loop. This subcommand accepts only -v/--verbose and -h/--help; any other token — a typo, a leftover flag, or a value accidentally passed — is rejected immediately. Generic usage guard, not a store error.","triggerScenarios":"Thrown at src/core/memory_cli.rs:373 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Call the subcommand bare or with only -v: `openhuman memory namespaces [-v]`.","Remove any extra arguments; namespaces takes no positional or value flags.","Use -h to print usage."],"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"}