diff --git a/README.md b/README.md index f949eeccf9..7e140feb00 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,8 @@ Options: --history-api-fallback Fallback to /index.html for Single Page Applications. --compress Enable gzip compression. --public The public hostname/ip address of the server. - --firewall Enable/disable firewall, or set hosts that are allowed to access the dev server. + --firewall [value...] Enable firewall or set hosts that are allowed to access the dev server. + --no-firewall Disable firewall. Global options: --color Enable colors on console. diff --git a/bin/cli-flags.js b/bin/cli-flags.js index 8465bca32e..fcb468e3a7 100644 --- a/bin/cli-flags.js +++ b/bin/cli-flags.js @@ -118,10 +118,12 @@ module.exports = { }, { name: 'firewall', - type: String, + type: [String, Boolean], description: - 'Enable/disable firewall, or set hosts that are allowed to access the dev server.', + 'Enable firewall or set hosts that are allowed to access the dev server.', + negatedDescription: 'Disable firewall.', multiple: true, + negative: true, }, ], };