Skip to content

Commit 7b87c61

Browse files
committed
fix: correct usage of cli-flags
1 parent 5872d35 commit 7b87c61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/webpack-cli/lib/utils/cli-flags.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const builtInFlags = [
8989
// For configs
9090
{
9191
name: 'config',
92-
usage: '--config <path to webpack configuration file>',
92+
usage: '--config <path-to-config> | --config <path-to-config> --config <path-to-config>',
9393
alias: 'c',
9494
type: String,
9595
multiple: true,
@@ -98,7 +98,7 @@ const builtInFlags = [
9898
},
9999
{
100100
name: 'config-name',
101-
usage: '--config-name <name of config>',
101+
usage: '--config-name <name-of-config> | --config-name <name-of-config> --config-name <name-of-config>',
102102
type: String,
103103
multiple: true,
104104
description: 'Name of the configuration to use',
@@ -114,7 +114,7 @@ const builtInFlags = [
114114
// Complex configs
115115
{
116116
name: 'env',
117-
usage: '--env',
117+
usage: '--env <variable> | --env <variable> --env <variable=value>',
118118
type: String,
119119
multipleType: true,
120120
description: 'Environment passed to the configuration when it is a function',
@@ -189,23 +189,23 @@ const builtInFlags = [
189189
// For webpack@4
190190
{
191191
name: 'entry',
192-
usage: '--entry <path to entry file> | --entry <path> --entry <path>',
192+
usage: '--entry <path-to-entry-file> | --entry <path> --entry <path>',
193193
type: String,
194194
multiple: true,
195195
description: 'The entry point(s) of your application e.g. ./src/main.js',
196196
link: 'https://webpack.js.org/concepts/#entry',
197197
},
198198
{
199199
name: 'output-path',
200-
usage: '--output-path <path to output directory>',
200+
usage: '--output-path <path-to-output-directory>',
201201
alias: 'o',
202202
type: String,
203203
description: 'Output location of the file generated by webpack e.g. ./dist/',
204204
link: 'https://webpack.js.org/configuration/output/#outputpath',
205205
},
206206
{
207207
name: 'target',
208-
usage: '--target <value>',
208+
usage: '--target <value> | --target <value> --target <value>',
209209
alias: 't',
210210
type: String,
211211
multiple: cli !== undefined,

0 commit comments

Comments
 (0)