{"record":{"id":"65c4223b487cc455","repo":"tinyhumansai/openhuman","slug":"unknown-dump-prompt-arg-other","errorCode":null,"errorMessage":"unknown dump-prompt arg: {other}","messagePattern":"unknown dump-prompt arg: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/agent_cli.rs","lineNumber":219,"sourceCode":"                i += 2;\n            }\n            \"--json\" => {\n                out.json = true;\n                i += 1;\n            }\n            \"--with-tools\" => {\n                out.with_tools = true;\n                i += 1;\n            }\n            \"-v\" | \"--verbose\" => {\n                out.verbose = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                print_dump_prompt_help();\n                std::process::exit(0);\n            }\n            other => return Err(anyhow!(\"unknown dump-prompt arg: {other}\")),\n        }\n        let _ = i; // silence unused-warning in the `help` branch\n    }\n    Ok(out)\n}\n\nfn run_dump_prompt(args: &[String]) -> Result<()> {\n    let flags = parse_dump_flags(args)?;\n    let agent = flags.agent.clone().ok_or_else(|| {\n        anyhow!(\"--agent <id> is required (e.g. `orchestrator`, `integrations_agent`, `welcome`)\")\n    })?;\n\n    if agent == \"integrations_agent\" && flags.toolkit.is_none() {\n        return Err(anyhow!(\n            \"--toolkit <slug> is required when --agent is `integrations_agent` \\\n             (e.g. `--toolkit gmail`). Run `composio list_connection` to see active slugs.\"\n        ));\n    }","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/agent_cli.rs#L201-L237","documentation":"Flag parsing in parse_dump_flags: a token matched none of the accepted options (--agent/-a, --toolkit/-t, --out/-o, --workspace/-w, --model/-m, --json, --with-tools, -v, -h) and hit the catch-all `other` arm, which rejects unknown arguments to dump-prompt.","triggerScenarios":"Thrown at src/core/agent_cli.rs:219 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `openhuman agent dump-prompt -h` for the accepted flag list","Fix the typo or move options that belong to dump-all"],"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"}