Skip to content

Commit

Permalink
Properly curry parseInt
Browse files Browse the repository at this point in the history
so additional arguments from commander are not passed through
  • Loading branch information
raineorshine committed Mar 26, 2020
1 parent a8287e9 commit e11451b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ncu
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (notifier.update && notifier.update.latest !== pkg.version) {
program
.description('[filter] is a list or regex of package names to check (all others will be ignored).')
.usage('[options] [filter]')
.option('--concurrency <n>', 'max number of concurrent HTTP requests to npm registry (default: 8).', parseInt, 8)
.option('--concurrency <n>', 'max number of concurrent HTTP requests to npm registry (default: 8).', cint.partialAt(parseInt, 1, 10), 8)
.option('--configFilePath <path>', 'rc config file path (default: directory of `packageFile` or ./ otherwise)')
.option('--configFileName <path>', 'rc config file name (default: .ncurc.{json,yml,js})')
.option('--cwd <path>', 'Used as current working directory for `spawn` in npm listing')
Expand Down

0 comments on commit e11451b

Please sign in to comment.