Skip to content

Commit 4378c0e

Browse files
authored
feat: add more negative flags
1 parent 09eab84 commit 4378c0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/cli-flags.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ module.exports = {
3030
name: 'https',
3131
type: Boolean,
3232
description: 'Use HTTPS protocol.',
33+
negatedDescription: 'Do not use HTTPS protocol.',
34+
negative: true,
3335
},
3436
{
3537
name: 'http2',
3638
type: Boolean,
3739
description: 'Use HTTP/2, must be used with HTTPS.',
40+
negatedDescription: 'Do not use HTTP/2.',
41+
negative: true,
3842
},
3943
{
4044
name: 'bonjour',
@@ -105,11 +109,16 @@ module.exports = {
105109
name: 'history-api-fallback',
106110
type: Boolean,
107111
description: 'Fallback to /index.html for Single Page Applications.',
112+
negatedDescription:
113+
'Do not fallback to /index.html for Single Page Applications.',
114+
negative: true,
108115
},
109116
{
110117
name: 'compress',
111118
type: Boolean,
112119
description: 'Enable gzip compression.',
120+
negatedDescription: 'Disable gzip compression.',
121+
negative: true,
113122
},
114123
{
115124
name: 'public',

0 commit comments

Comments
 (0)