Skip to content

Commit e46f000

Browse files
refactor: code update
1 parent b790a3a commit e46f000

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,7 +1975,10 @@ class WebpackCLI {
19751975
const { distance } = require("fastest-levenshtein");
19761976

19771977
for (const option of (command as Command).options) {
1978-
if (!option.hidden && distance(name, option.long?.slice(2) as string) < 3) {
1978+
if (
1979+
!(option as Option & { internal?: boolean }).internal &&
1980+
distance(name, option.long?.slice(2) as string) < 3
1981+
) {
19791982
this.logger.error(`Did you mean '--${option.name()}'?`);
19801983
}
19811984
}

0 commit comments

Comments
 (0)