Skip to content

Commit

Permalink
feat: allow Boolean type for the --firewall option (#3041)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Feb 24, 2021
1 parent 7484be6 commit 6711c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -102,7 +102,8 @@ Options:
--history-api-fallback Fallback to /index.html for Single Page Applications.
--compress Enable gzip compression.
--public <value> The public hostname/ip address of the server.
--firewall <value...> 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.
Expand Down
6 changes: 4 additions & 2 deletions bin/cli-flags.js
Expand Up @@ -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,
},
],
};

0 comments on commit 6711c1d

Please sign in to comment.