Merge pull request #8584 from RamKrish2079/fix/rn-server-port-prompt

React-native-server: Changed default port to number in CLI options
This commit is contained in:
Michael Shilman 2019-10-27 17:04:30 +08:00 committed by GitHub
commit ba74d889fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ export function parseList(str) {
function getCli() {
program
.option('-h, --host <host>', 'host to listen on', 'localhost')
.option('-p, --port <port>', 'port to listen on', str => parseInt(str, 10), '7007')
.option('-p, --port <port>', 'port to listen on', str => parseInt(str, 10), 7007)
.option('-e, --environment [environment]', 'DEVELOPMENT/PRODUCTION environment for webpack')
.option('-i, --manual-id', 'allow multiple users to work with same storybook')
.option('-c, --config-dir [dir-name]', 'Directory where to load Storybook configurations from')