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

推荐订阅源

GbyAI
GbyAI
B
Blog
Stack Overflow Blog
Stack Overflow Blog
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
罗磊的独立博客
L
LangChain Blog
V
Visual Studio Blog
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享

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(qa): reject ambiguous dependency report inputs · open...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -249,38 +249,46 @@ export function parseArgs(argv) {

249249

jsonPath: null,

250250

markdownPath: null,

251251

};

252+

const seen = new Set();

253+

const setOnce = (flag, key, value) => {

254+

if (seen.has(flag)) {

255+

throw new Error(`${flag} was provided more than once.`);

256+

}

257+

seen.add(flag);

258+

options[key] = value;

259+

};

252260

for (let index = 0; index < argv.length; index += 1) {

253261

const arg = argv[index];

254262

if (arg === "--") {

255263

continue;

256264

}

257265

if (arg === "--root") {

258-

options.rootDir = readRequiredValue(argv, index, "--root");

266+

setOnce(arg, "rootDir", readRequiredValue(argv, index, "--root"));

259267

index += 1;

260268

continue;

261269

}

262270

if (arg === "--base-ref") {

263-

options.baseRef = readRequiredValue(argv, index, "--base-ref");

271+

setOnce(arg, "baseRef", readRequiredValue(argv, index, "--base-ref"));

264272

index += 1;

265273

continue;

266274

}

267275

if (arg === "--base-lockfile") {

268-

options.baseLockfile = readRequiredValue(argv, index, "--base-lockfile");

276+

setOnce(arg, "baseLockfile", readRequiredValue(argv, index, "--base-lockfile"));

269277

index += 1;

270278

continue;

271279

}

272280

if (arg === "--head-lockfile") {

273-

options.headLockfile = readRequiredValue(argv, index, "--head-lockfile");

281+

setOnce(arg, "headLockfile", readRequiredValue(argv, index, "--head-lockfile"));

274282

index += 1;

275283

continue;

276284

}

277285

if (arg === "--json") {

278-

options.jsonPath = readRequiredValue(argv, index, "--json");

286+

setOnce(arg, "jsonPath", readRequiredValue(argv, index, "--json"));

279287

index += 1;

280288

continue;

281289

}

282290

if (arg === "--markdown") {

283-

options.markdownPath = readRequiredValue(argv, index, "--markdown");

291+

setOnce(arg, "markdownPath", readRequiredValue(argv, index, "--markdown"));

284292

index += 1;

285293

continue;

286294

}

@@ -289,6 +297,9 @@ export function parseArgs(argv) {

289297

if (!options.baseRef && !options.baseLockfile) {

290298

throw new Error("Expected --base-ref <git-ref> or --base-lockfile <path>.");

291299

}

300+

if (options.baseRef && options.baseLockfile) {

301+

throw new Error("Use either --base-ref or --base-lockfile, not both.");

302+

}

292303

return options;

293304

}

294305