更新了initServer时的默认行为

This commit is contained in:
Xu Chang 2025-10-07 18:16:04 +08:00
parent a2cca9dd46
commit cd7afc29a3
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const assert = require('assert');
const pwd = process.cwd(); const pwd = process.cwd();
const ifExists = process.argv[2]; const ifExists = process.argv[2];
assert(['drop' , 'omit' , 'dropIfNotStatic'].includes(ifExists), "第二个参数只能是'drop' | 'omit' | 'dropIfNotStatic'"); assert(!ifExists || ['drop' , 'omit' , 'dropIfNotStatic'].includes(ifExists), "第二个参数只能是'drop' | 'omit' | 'dropIfNotStatic'");
initialize( initialize(
pwd, pwd,