Skip to content

Commit

Permalink
fix: help output
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 12, 2021
1 parent 7f5d864 commit c7b13ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -24,7 +24,10 @@ class WebpackCLI {

async makeCommand(commandOptions, options, action) {
const alreadyLoaded = this.program.commands.find(
(command) => command.name() === commandOptions.name || command.aliases().includes(commandOptions.alias),
(command) =>
command.name() === commandOptions.name ||
command.aliases().includes(commandOptions.alias) ||
JSON.stringify(command.aliases()) === JSON.stringify(commandOptions.alias),
);

if (alreadyLoaded) {
Expand Down

0 comments on commit c7b13ff

Please sign in to comment.