惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
J
Java Code Geeks
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
B
Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
N
Netflix TechBlog - Medium
C
Check Point Blog
Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 叶小钗
T
Tailwind CSS Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(scripts): reject short flag version values · openclaw...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -25,7 +25,7 @@ export function budgetFloatFlag(flag, key) {

2525

return null;

2626

}

2727

const value = argv[index + 1];

28-

if (!value || value.startsWith("--")) {

28+

if (!value || value.startsWith("-")) {

2929

throw new Error(`${flag} requires a value`);

3030

}

3131

return {

Original file line numberDiff line numberDiff line change

@@ -93,7 +93,7 @@ export function parseVersionSyncArgs(argv: string[]): VersionSyncCliOptions {

9393
9494

function readOptionValue(argv: string[], index: number, flag: string): string {

9595

const value = argv[index + 1];

96-

if (!value || value.startsWith("--")) {

96+

if (!value || value.startsWith("-")) {

9797

throw new Error(`Missing value for ${flag}.`);

9898

}

9999

return value;

Original file line numberDiff line numberDiff line change

@@ -33,6 +33,18 @@ describe("resolveAndroidVersion", () => {

3333
3434

expect(result.status).toBe(1);

3535

expect(result.stderr).toBe("Missing value for --field.\n");

36+
37+

const shortFlagResult = spawnSync(

38+

process.execPath,

39+

["--import", "tsx", "scripts/android-version.ts", "--field", "-h"],

40+

{

41+

cwd: process.cwd(),

42+

encoding: "utf8",

43+

},

44+

);

45+
46+

expect(shortFlagResult.status).toBe(1);

47+

expect(shortFlagResult.stderr).toBe("Missing value for --field.\n");

3648

});

3749
3850

it("prints selected fields from the CLI", () => {

@@ -74,6 +86,18 @@ describe("resolveAndroidVersion", () => {

7486
7587

expect(result.status).toBe(1);

7688

expect(result.stderr).toBe("Missing value for --root.\n");

89+
90+

const shortFlagResult = spawnSync(

91+

process.execPath,

92+

["--import", "tsx", "scripts/android-sync-versioning.ts", "--root", "-h"],

93+

{

94+

cwd: process.cwd(),

95+

encoding: "utf8",

96+

},

97+

);

98+
99+

expect(shortFlagResult.status).toBe(1);

100+

expect(shortFlagResult.stderr).toBe("Missing value for --root.\n");

77101

});

78102
79103

it("parses pinned release versions and Android version codes", () => {

Original file line numberDiff line numberDiff line change

@@ -29,6 +29,18 @@ describe("resolveIosVersion", () => {

2929
3030

expect(result.status).toBe(1);

3131

expect(result.stderr).toBe("Missing value for --field.\n");

32+
33+

const shortFlagResult = spawnSync(

34+

process.execPath,

35+

["--import", "tsx", "scripts/ios-version.ts", "--field", "-h"],

36+

{

37+

cwd: process.cwd(),

38+

encoding: "utf8",

39+

},

40+

);

41+
42+

expect(shortFlagResult.status).toBe(1);

43+

expect(shortFlagResult.stderr).toBe("Missing value for --field.\n");

3244

});

3345
3446

it("prints selected fields from the CLI", () => {

@@ -70,6 +82,18 @@ describe("resolveIosVersion", () => {

7082
7183

expect(result.status).toBe(1);

7284

expect(result.stderr).toBe("Missing value for --root.\n");

85+
86+

const shortFlagResult = spawnSync(

87+

process.execPath,

88+

["--import", "tsx", "scripts/ios-sync-versioning.ts", "--root", "-h"],

89+

{

90+

cwd: process.cwd(),

91+

encoding: "utf8",

92+

},

93+

);

94+
95+

expect(shortFlagResult.status).toBe(1);

96+

expect(shortFlagResult.stderr).toBe("Missing value for --root.\n");

7397

});

7498
7599

it("parses pinned release versions and derives Apple marketing fields", () => {

Original file line numberDiff line numberDiff line change

@@ -79,6 +79,12 @@ describe("test perf budget script", () => {

7979

expect(() => testing.parseArgs(["--max-wall-ms", "--baseline-wall-ms", "1000"], {})).toThrow(

8080

"--max-wall-ms requires a value",

8181

);

82+

expect(() => testing.parseArgs(["--max-wall-ms", "-h"], {})).toThrow(

83+

"--max-wall-ms requires a value",

84+

);

85+

expect(() => testing.parseArgs(["--max-regression-pct", "-h"], {})).toThrow(

86+

"--max-regression-pct requires a value",

87+

);

8288

});

8389
8490

it("requires timed file evidence in the Vitest JSON report", () => {