



























@@ -151,6 +151,21 @@ describe("argv helpers", () => {
151151argv: ["node", "openclaw", "help", "--help"],
152152expected: ["node", "openclaw", "help", "--help"],
153153},
154+{
155+name: "nested root help target",
156+argv: ["node", "openclaw", "help", "plugins", "list"],
157+expected: ["node", "openclaw", "plugins", "list", "--help"],
158+},
159+{
160+name: "nested root help target with help flag",
161+argv: ["node", "openclaw", "help", "plugins", "list", "--help"],
162+expected: ["node", "openclaw", "plugins", "list", "--help"],
163+},
164+{
165+name: "nested root help target with trailing root option",
166+argv: ["node", "openclaw", "help", "memory", "status", "--no-color"],
167+expected: ["node", "openclaw", "--no-color", "memory", "status", "--help"],
168+},
154169])("normalizes root help targets: $name", ({ argv, expected }) => {
155170expect(normalizeRootHelpTargetArgv(argv)).toEqual(expected);
156171});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。