diff --git a/packages/webpack-cli/lib/utils/cli-flags.js b/packages/webpack-cli/lib/utils/cli-flags.js index b523de83e93..6a0c9ce10a9 100644 --- a/packages/webpack-cli/lib/utils/cli-flags.js +++ b/packages/webpack-cli/lib/utils/cli-flags.js @@ -89,7 +89,7 @@ const builtInFlags = [ // For configs { name: 'config', - usage: '--config ', + usage: '--config | --config --config ', alias: 'c', type: String, multiple: true, @@ -98,7 +98,7 @@ const builtInFlags = [ }, { name: 'config-name', - usage: '--config-name ', + usage: '--config-name | --config-name --config-name ', type: String, multiple: true, description: 'Name of the configuration to use', @@ -114,7 +114,7 @@ const builtInFlags = [ // Complex configs { name: 'env', - usage: '--env', + usage: '--env | --env --env ', type: String, multipleType: true, description: 'Environment passed to the configuration when it is a function', @@ -189,7 +189,7 @@ const builtInFlags = [ // For webpack@4 { name: 'entry', - usage: '--entry | --entry --entry ', + usage: '--entry | --entry --entry ', type: String, multiple: true, description: 'The entry point(s) of your application e.g. ./src/main.js', @@ -197,7 +197,7 @@ const builtInFlags = [ }, { name: 'output-path', - usage: '--output-path ', + usage: '--output-path ', alias: 'o', type: String, description: 'Output location of the file generated by webpack e.g. ./dist/', @@ -205,7 +205,7 @@ const builtInFlags = [ }, { name: 'target', - usage: '--target ', + usage: '--target | --target --target ', alias: 't', type: String, multiple: cli !== undefined,