Skip to content

Commit

Permalink
parse port string as integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdesl committed Dec 16, 2017
1 parent c008bb0 commit 1fa9fef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ program.version(version);
program
.command('serve [input]')
.description('starts a development server')
.option('-p, --port <port>', 'set the port to serve on. defaults to 1234')
.option(
'-p, --port <port>',
'set the port to serve on. defaults to 1234',
parseInt
)
.option('-o, --open', 'automatically open in default browser')
.option(
'-d, --out-dir <path>',
Expand Down

0 comments on commit 1fa9fef

Please sign in to comment.