修cli:存显命意 · openclaw/openclaw@9410eb3
steipete
·
2026-05-24
·
via Recent Commits to openclaw:main
| 原文行号 | 差异行号 | 差异行变 |
|---|
@@ -72,7 +72,7 @@ describe("update cli option collisions", () => {
|
72 | 72 | }, |
73 | 73 | { |
74 | 74 | name: "forwards parent-captured --json/--timeout to hidden `update finalize`", |
75 | | -argv: ["update", "finalize", "--json", "--timeout", "17", "--no-restart"], |
| 75 | +argv: ["update", "finalize", "--json", "--timeout", "17"], |
76 | 76 | assert: () => { |
77 | 77 | expect(updateFinalizeCommand).toHaveBeenCalledTimes(1); |
78 | 78 | const opts = firstCallOptions(updateFinalizeCommand); |
@@ -87,6 +87,17 @@ describe("update cli option collisions", () => {
|
87 | 87 | ).toBe(false); |
88 | 88 | }, |
89 | 89 | }, |
| 90 | +{ |
| 91 | +name: "keeps hidden `update finalize --no-restart` as a no-op parity flag", |
| 92 | +argv: ["update", "finalize", "--no-restart"], |
| 93 | +assert: () => { |
| 94 | +expect(updateFinalizeCommand).toHaveBeenCalledTimes(1); |
| 95 | +const opts = firstCallOptions(updateFinalizeCommand); |
| 96 | +expect( |
| 97 | +(opts as { json?: boolean; timeout?: string; restart?: boolean } | undefined)?.restart, |
| 98 | +).toBe(false); |
| 99 | +}, |
| 100 | +}, |
90 | 101 | { |
91 | 102 | name: "forwards parent-captured --timeout to `update wizard`", |
92 | 103 | argv: ["update", "wizard", "--timeout", "13"], |
|
此內容由慣性聚合(RSS閱讀器)自動聚合整理,僅供閱讀參考。 原文來自 — 版權歸原作者所有。