Skip to content

Commit 1280f74

Browse files
refactor: delete prehook
1 parent 897b742 commit 1280f74

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

packages/webpack-cli/src/webpack-cli.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -664,27 +664,6 @@ class WebpackCLI {
664664
}
665665
}
666666

667-
command.hook("preAction", async (thisCommand) => {
668-
const opts = thisCommand.opts();
669-
670-
if (typeof opts.help === "undefined") {
671-
return;
672-
}
673-
674-
const isVerbose = opts.help === "verbose";
675-
676-
this.program.forHelp = true;
677-
678-
const commandHelpData = this.#buildCommandHelpData(
679-
thisCommand as Command,
680-
this.program,
681-
isVerbose,
682-
);
683-
renderCommandHelp(commandHelpData, this.#renderOptions());
684-
renderFooter(this.#renderOptions(), { verbose: isVerbose });
685-
process.exit(0);
686-
});
687-
688667
command.action(options.action);
689668

690669
return command;

0 commit comments

Comments
 (0)