Skip to content

Commit 65e6b74

Browse files
feat: display options as part of help info (#2084)
1 parent c1aaa80 commit 65e6b74

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

+17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ const commands = [
1414
type: String,
1515
usage: 'init [scaffold]',
1616
description: 'Initialize a new webpack configuration',
17+
flags: [
18+
{
19+
name: 'auto',
20+
type: Boolean,
21+
description: 'To generate default config',
22+
},
23+
{
24+
name: 'force',
25+
type: Boolean,
26+
description: 'To force config generation',
27+
},
28+
{
29+
name: 'generation-path',
30+
type: String,
31+
description: 'To scaffold in a specified path',
32+
},
33+
],
1734
},
1835
{
1936
name: 'migrate',

0 commit comments

Comments
 (0)