Skip to content

Commit 5635245

Browse files
authored
fix: remove an error at the end of the -h "help" flag (#1632)
1 parent 639dcab commit 5635245

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/base.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export default abstract class extends Command {
3232
try {
3333
return await super.catch(err);
3434
} catch (e: any) {
35+
if (e.message.includes('EEXIT: 0')) {
36+
process.exitCode = 0;
37+
return;
38+
}
3539
if (e instanceof Error) {
3640
this.logToStderr(`${e.name}: ${e.message}`);
3741
process.exitCode = 1;

0 commit comments

Comments
 (0)