fix(cli): keep help banner configless · openclaw/openclaw@0741614
vincentkoc
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -135,6 +135,10 @@ describe("configureProgramHelp", () => {
|
135 | 135 | |
136 | 136 | const help = captureHelpOutput(program); |
137 | 137 | expect(help).toContain("BANNER-LINE"); |
| 138 | +expect(formatCliBannerLineMock).toHaveBeenCalledWith( |
| 139 | +testProgramContext.programVersion, |
| 140 | +expect.objectContaining({ mode: "default" }), |
| 141 | +); |
138 | 142 | expect(help).toContain("Examples:"); |
139 | 143 | expect(help).toContain("https://docs.openclaw.ai/cli"); |
140 | 144 | }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -125,7 +125,7 @@ export function configureProgramHelp(program: Command, ctx: ProgramContext) {
|
125 | 125 | return ""; |
126 | 126 | } |
127 | 127 | const rich = isRich(); |
128 | | -const line = formatCliBannerLine(ctx.programVersion, { richTty: rich }); |
| 128 | +const line = formatCliBannerLine(ctx.programVersion, { richTty: rich, mode: "default" }); |
129 | 129 | return `\n${line}\n`; |
130 | 130 | }); |
131 | 131 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。