Skip to content

Commit 6711c1d

Browse files
authored
feat: allow Boolean type for the --firewall option (#3041)
1 parent 7484be6 commit 6711c1d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ Options:
102102
--history-api-fallback Fallback to /index.html for Single Page Applications.
103103
--compress Enable gzip compression.
104104
--public <value> The public hostname/ip address of the server.
105-
--firewall <value...> Enable/disable firewall, or set hosts that are allowed to access the dev server.
105+
--firewall [value...] Enable firewall or set hosts that are allowed to access the dev server.
106+
--no-firewall Disable firewall.
106107
107108
Global options:
108109
--color Enable colors on console.

bin/cli-flags.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ module.exports = {
118118
},
119119
{
120120
name: 'firewall',
121-
type: String,
121+
type: [String, Boolean],
122122
description:
123-
'Enable/disable firewall, or set hosts that are allowed to access the dev server.',
123+
'Enable firewall or set hosts that are allowed to access the dev server.',
124+
negatedDescription: 'Disable firewall.',
124125
multiple: true,
126+
negative: true,
125127
},
126128
],
127129
};

0 commit comments

Comments
 (0)