Skip to content

Commit

Permalink
fix: show default value in help output if available
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 4, 2021
1 parent 45d1fea commit fed29b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -1357,7 +1357,7 @@ class WebpackCLI {
this.logger.raw(`${bold("Description:")} ${option.description}`);
}

if (!option.negate && options.defaultValue) {
if (!option.negate && option.defaultValue) {
this.logger.raw(
`${bold("Default value:")} ${JSON.stringify(option.defaultValue)}`,
);
Expand Down

0 comments on commit fed29b0

Please sign in to comment.