mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(scripts): reject short flag Discord smoke values
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user