Skip to content

Commit

Permalink
fix: correct usage of cli-flags (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Dec 7, 2020
1 parent 5872d35 commit c8fc7d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/webpack-cli/lib/utils/cli-flags.js
Expand Up @@ -89,7 +89,7 @@ const builtInFlags = [
// For configs
{
name: 'config',
usage: '--config <path to webpack configuration file>',
usage: '--config <path-to-config> | --config <path-to-config> --config <path-to-config>',
alias: 'c',
type: String,
multiple: true,
Expand All @@ -98,7 +98,7 @@ const builtInFlags = [
},
{
name: 'config-name',
usage: '--config-name <name of config>',
usage: '--config-name <name-of-config> | --config-name <name-of-config> --config-name <name-of-config>',
type: String,
multiple: true,
description: 'Name of the configuration to use',
Expand All @@ -114,7 +114,7 @@ const builtInFlags = [
// Complex configs
{
name: 'env',
usage: '--env',
usage: '--env <variable> | --env <variable> --env <variable=value>',
type: String,
multipleType: true,
description: 'Environment passed to the configuration when it is a function',
Expand Down Expand Up @@ -189,23 +189,23 @@ const builtInFlags = [
// For webpack@4
{
name: 'entry',
usage: '--entry <path to entry file> | --entry <path> --entry <path>',
usage: '--entry <path-to-entry-file> | --entry <path> --entry <path>',
type: String,
multiple: true,
description: 'The entry point(s) of your application e.g. ./src/main.js',
link: 'https://webpack.js.org/concepts/#entry',
},
{
name: 'output-path',
usage: '--output-path <path to output directory>',
usage: '--output-path <path-to-output-directory>',
alias: 'o',
type: String,
description: 'Output location of the file generated by webpack e.g. ./dist/',
link: 'https://webpack.js.org/configuration/output/#outputpath',
},
{
name: 'target',
usage: '--target <value>',
usage: '--target <value> | --target <value> --target <value>',
alias: 't',
type: String,
multiple: cli !== undefined,
Expand Down

0 comments on commit c8fc7d1

Please sign in to comment.