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 12, 2021
1 parent 0fa5b70 commit 3cc424b
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 3cc424b

Please sign in to comment.