mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 19:12:22 +00:00
fix(scripts): reject short flag TUI PTY values
This commit is contained in:
@@ -63,7 +63,7 @@ function readOption(args: string[], name: string): string | undefined {
|
||||
return undefined;
|
||||
}
|
||||
const value = args[idx + 1];
|
||||
if (!value || value.startsWith("--")) {
|
||||
if (!value || value.startsWith("-")) {
|
||||
throw new CliArgumentError(`${name} requires a value`);
|
||||
}
|
||||
return value.trim();
|
||||
|
||||
Reference in New Issue
Block a user