{"record":{"id":"fa5709b5e42aa684","repo":"tinyhumansai/openhuman","slug":"unknown-docs-arg-other","errorCode":null,"errorMessage":"unknown docs arg: {other}","messagePattern":"unknown docs arg: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/memory_cli.rs","lineNumber":228,"sourceCode":"fn run_docs(args: &[String]) -> Result<()> {\n    let mut namespace: Option<String> = None;\n    let mut verbose = false;\n    let mut i = 0;\n\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--namespace\" | \"-n\" => {\n                namespace = Some(next_arg(args, &mut i, \"--namespace\")?);\n            }\n            \"-v\" | \"--verbose\" => {\n                verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman memory docs [--namespace <ns>] [-v]\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown docs 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(\"docs\").await?;\n        client\n            .list_documents(namespace.as_deref())\n            .await\n            .map_err(anyhow::Error::msg)\n    })?;\n\n    println!(\"{}\", serde_json::to_string_pretty(&result)?);","sourceCodeStart":210,"sourceCodeEnd":246,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/memory_cli.rs#L210-L246","documentation":"Generic unknown-argument guard in `run_docs` (the `memory docs`/`memory list` subcommand): the token matches none of --namespace/-n, -v/--verbose, -h/--help. The docs listing accepts only a namespace filter.","triggerScenarios":"Thrown at src/core/memory_cli.rs:228 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use `openhuman memory docs --namespace <ns>`","Check spelling with `openhuman memory docs --help`"],"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"}