Skip to content

Commit d27c7d4

Browse files
committed
Merge pull request #7 from greaterweb/bugfix/6-parsing-retrieve-option
CLI Find Command - Parse Retrieve Option as Integer
2 parents f75eaf9 + f269fa2 commit d27c7d4

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)