Skip to content

Commit f269fa2

Browse files
committed
Fix #6 - parse retrieve option as integer
1 parent f75eaf9 commit f269fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/portastic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ commander
2222
.command('find <min> <max>')
2323
.alias('f')
2424
.description('Find ports that are available to use')
25-
.option('-r, --retrieve', 'How many ports to retrieve')
25+
.option('-r, --retrieve <n>', 'How many ports to retrieve', parseInt)
2626
.action(function(min, max, options) {
2727
portastic.find({
2828
min: min,

0 commit comments

Comments
 (0)