Skip to content

Commit

Permalink
fix: remove an error at the end of the -h "help" flag (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoandmatrix authored Jan 18, 2025
1 parent 639dcab commit 5635245
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5635245

Please sign in to comment.