Skip to content

Commit 3965dcb

Browse files
chore: update usage info for subcommands (#2086)
1 parent cd09f85 commit 3965dcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const commands = [
1212
name: 'init',
1313
alias: 'c',
1414
type: String,
15-
usage: 'init [scaffold]',
15+
usage: 'init [scaffold] [options]',
1616
description: 'Initialize a new webpack configuration',
1717
flags: [
1818
{
@@ -44,15 +44,15 @@ const commands = [
4444
scope: 'external',
4545
alias: 'l',
4646
type: String,
47-
usage: 'loader',
47+
usage: 'loader [path]',
4848
description: 'Scaffold a loader repository',
4949
},
5050
{
5151
name: 'plugin',
5252
alias: 'p',
5353
scope: 'external',
5454
type: String,
55-
usage: 'plugin',
55+
usage: 'plugin [path]',
5656
description: 'Scaffold a plugin repository',
5757
},
5858
{
@@ -80,7 +80,7 @@ const commands = [
8080
alias: 's',
8181
scope: 'external',
8282
type: String,
83-
usage: 'serve',
83+
usage: 'serve [options]',
8484
description: 'Run the webpack Dev Server',
8585
},
8686
];

0 commit comments

Comments
 (0)