This commit is contained in:
xiongxiao
2026-03-16 21:55:40 +08:00
committed by cnb
parent c7a0c6ac3c
commit d019ee0158
3 changed files with 4 additions and 3 deletions

View File

@@ -104,8 +104,9 @@ app.route({
}
}
}).define(async (ctx) => {
const needExit = ctx.args.needExit ?? true;
const exit = (code: number) => {
if (ctx.args.needExit) {
if (needExit) {
process.exit(code);
}
}