mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-07 18:42:25 +00:00
fix(scripts): reject short flag startup memory paths
This commit is contained in:
@@ -49,7 +49,7 @@ function readNonEmptyEnv(name) {
|
||||
|
||||
function readRequiredPathOption(argv, index, flag) {
|
||||
const value = argv[index + 1];
|
||||
if (!value || value.startsWith("--")) {
|
||||
if (!value || value.startsWith("-")) {
|
||||
throw new Error(`${flag} requires a path`);
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user