-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show default value in help output if available (#2814)
* fix: show default value in help output if available * test: add
- Loading branch information
Showing
4 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CLI API custom help output should display help information 1`] = ` | ||
Array [ | ||
Array [ | ||
"[1mUsage[22m: webpack --color [value]", | ||
], | ||
Array [ | ||
"[1mDescription:[22m any color", | ||
], | ||
Array [ | ||
"[1mDefault value:[22m \\"blue\\"", | ||
], | ||
Array [ | ||
"", | ||
], | ||
Array [ | ||
"To see list of all supported commands and options run 'webpack --help=verbose'. | ||
", | ||
], | ||
Array [ | ||
"[1mWebpack documentation:[22m https://webpack.js.org/.", | ||
], | ||
Array [ | ||
"[1mCLI documentation:[22m https://webpack.js.org/api/cli/.", | ||
], | ||
Array [ | ||
"[1mMade with ♥ by the webpack team[22m.", | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CLI API custom help output should display help information 1`] = ` | ||
Array [ | ||
Array [ | ||
"[1mUsage[22m: webpack --color [value]", | ||
], | ||
Array [ | ||
"[1mDescription:[22m any color", | ||
], | ||
Array [ | ||
"[1mDefault value:[22m \\"blue\\"", | ||
], | ||
Array [ | ||
"", | ||
], | ||
Array [ | ||
"To see list of all supported commands and options run 'webpack --help=verbose'. | ||
", | ||
], | ||
Array [ | ||
"[1mWebpack documentation:[22m https://webpack.js.org/.", | ||
], | ||
Array [ | ||
"[1mCLI documentation:[22m https://webpack.js.org/api/cli/.", | ||
], | ||
Array [ | ||
"[1mMade with ♥ by the webpack team[22m.", | ||
], | ||
] | ||
`; |