From 937c501e7e294efdc236c0000382ec7c08f4f708 Mon Sep 17 00:00:00 2001 From: neoandmatrix Date: Wed, 15 Jan 2025 23:09:55 +0530 Subject: [PATCH] fix: fix the error at the end of the -h help flag --- src/core/base.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/base.ts b/src/core/base.ts index ede9d22746b..f5068cbbc19 100644 --- a/src/core/base.ts +++ b/src/core/base.ts @@ -32,6 +32,10 @@ export default abstract class extends Command { try { return await super.catch(err); } catch (e: any) { + if (e.message.includes('EEXIT: 0')) { + process.exitCode = 0; + return; + } if (e instanceof Error) { this.logToStderr(`${e.name}: ${e.message}`); process.exitCode = 1;