rename count to limit

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-02-21 08:40:23 -05:00
parent e47401768f
commit e817971119
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);