From 1fa9fef1d1165630b0beabba5d546ee3ccffbec1 Mon Sep 17 00:00:00 2001 From: mattdesl Date: Fri, 15 Dec 2017 21:21:13 -0500 Subject: [PATCH] parse port string as integer --- bin/cli.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/cli.js b/bin/cli.js index ea71832a42b..c86c71690d8 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -10,7 +10,11 @@ program.version(version); program .command('serve [input]') .description('starts a development server') - .option('-p, --port ', 'set the port to serve on. defaults to 1234') + .option( + '-p, --port ', + 'set the port to serve on. defaults to 1234', + parseInt + ) .option('-o, --open', 'automatically open in default browser') .option( '-d, --out-dir ',