Allowing HTTP rate limits to be set by configuration or argument.
This commit is contained in:
10
src/argv.js
10
src/argv.js
@@ -153,6 +153,16 @@ const { argv } = yargs
|
||||
type: 'number',
|
||||
default: 1,
|
||||
})
|
||||
.option('interval', {
|
||||
describe: 'Minimum wait time between HTTP requests',
|
||||
type: 'number',
|
||||
// don't set default, because argument has to override config, but config has to override default
|
||||
})
|
||||
.option('concurrency', {
|
||||
describe: 'Maximum amount of parallel HTTP requests',
|
||||
type: 'number',
|
||||
// don't set default, because argument has to override config, but config has to override default
|
||||
})
|
||||
.option('save', {
|
||||
describe: 'Save fetched releases to database',
|
||||
type: 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user