fix(scripts): reject short flag Discord smoke values

This commit is contained in:
Vincent Koc
2026-06-21 22:44:55 +02:00
parent 609d7a14b1
commit 89768d456b
2 changed files with 6 additions and 1 deletions
@@ -271,7 +271,7 @@ function resolveArg(flag: string, argv: string[]): string | undefined {
return undefined;
}
const value = argv[idx + 1];
if (!value || value.startsWith("--")) {
if (!value || value.startsWith("-")) {
throw new CliArgumentError(`${flag} requires a value`);
}
return value;