We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b790a3a commit e46f000Copy full SHA for e46f000
1 file changed
packages/webpack-cli/src/webpack-cli.ts
@@ -1975,7 +1975,10 @@ class WebpackCLI {
1975
const { distance } = require("fastest-levenshtein");
1976
1977
for (const option of (command as Command).options) {
1978
- if (!option.hidden && distance(name, option.long?.slice(2) as string) < 3) {
+ if (
1979
+ !(option as Option & { internal?: boolean }).internal &&
1980
+ distance(name, option.long?.slice(2) as string) < 3
1981
+ ) {
1982
this.logger.error(`Did you mean '--${option.name()}'?`);
1983
}
1984
0 commit comments