From acc0162c34dabc523f1fde56bb16ec48b5b19d1f Mon Sep 17 00:00:00 2001 From: Rodrigo Tobar Date: Mon, 22 May 2023 21:16:14 +0800 Subject: [PATCH] Switch -m/-M to match ijson.dump Signed-off-by: Rodrigo Tobar --- ijson/benchmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ijson/benchmark.py b/ijson/benchmark.py index 9d60e2d..492afdb 100644 --- a/ijson/benchmark.py +++ b/ijson/benchmark.py @@ -241,11 +241,11 @@ def main(): help='List available benchmarks and backends') parser.add_argument('-i', '--input', help='File to use for benchmarks rather than built-in benchmarking functions') - parser.add_argument('-m', '--multiple-values', action='store_true', default=False, + parser.add_argument('-M', '--multiple-values', action='store_true', default=False, help='Content has multiple JSON values, useful when used with -i') parser.add_argument('-f', '--use-float', action='store_true', default=False, help='Parse non-integer numbers as float instead of Decimal') - parser.add_argument('-M', '--method', choices=['basic_parse', 'parse', 'kvitems', 'items'], + parser.add_argument('-m', '--method', choices=['basic_parse', 'parse', 'kvitems', 'items'], help='The method to benchmark', default='basic_parse') parser.add_argument('-c', '--coro', action='store_true', default=False, dest='run_coro', help='Benchmark coroutine methods')