rename count to limit
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -65,7 +65,7 @@ function registerPackageCommand(program: Command) {
|
||||
.description(
|
||||
'Fuzz an OpenAPI schema by generating random data and sending it to the server.',
|
||||
)
|
||||
.option('--count <count>', 'Number of requests to send')
|
||||
.option('--limit <limit>', 'Maximum number of requests to send.')
|
||||
.option('--workers <workers>', 'Number of workers to use', '2')
|
||||
.option(
|
||||
'--debug',
|
||||
|
||||
@@ -52,8 +52,8 @@ async function fuzz(opts: OptionValues) {
|
||||
);
|
||||
}
|
||||
|
||||
if (opts.count) {
|
||||
args.push('--hypothesis-max-examples', opts.count);
|
||||
if (opts.limit) {
|
||||
args.push('--hypothesis-max-examples', opts.limit);
|
||||
}
|
||||
args.push('--workers', opts.workers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user