From 97259793639ed83d4055023dbcf1d4a3825ea41b Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Tue, 17 Nov 2020 20:45:11 +0100 Subject: [PATCH] Fix increments for argument parsing --- generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate.py b/generate.py index 522d290..03a4653 100755 --- a/generate.py +++ b/generate.py @@ -23,8 +23,10 @@ while i < argc: split = pname.split('=', maxsplit=1) if len(split) == 2: pname, v = split + i += 1 elif i+1 < argc: v = sys.argv[i+1] + i += 2 if v is not None: if pname == 'config': @@ -33,7 +35,6 @@ while i < argc: output_dir = v else: params_from_args[pname] = v - i += 2 else: if j == 1: config_file = arg