Skip to content

Commit

Permalink
chore: migrate to helpCommand from addHelpCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 4, 2024
1 parent 3d5089c commit e5ea5d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,8 @@ class WebpackCLI implements IWebpackCLI {
process.exit(0);
};
this.program.helpOption(false);
this.program.addHelpCommand(false);
// Suppress the default help command
this.program.helpCommand(false);
this.program.option("-h, --help [verbose]", "Display help for commands and options.");

let isInternalActionCalled = false;
Expand Down

0 comments on commit e5ea5d0

Please sign in to comment.