From 458cb4e458945a9b3c3dec2c392fd532a3f6763b Mon Sep 17 00:00:00 2001 From: bmarcote Date: Mon, 19 Dec 2022 15:07:22 +0100 Subject: [PATCH] 'run' option now truly accepts only 1 step --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d9b58e3..44756b8 100644 --- a/app.py +++ b/app.py @@ -318,7 +318,7 @@ def main(): parser_run = subparsers.add_parser('run', help='Runs the post-process from a given step.', description=help_run, formatter_class=parser.formatter_class) parser_run.add_argument('step1', type=str, help='Step to start the post-process.') - parser_run.add_argument('step2', type=str, default=None, help='Last step to run (included). ' \ + parser_run.add_argument('step2', type=str, default=None, nargs='?', help='Last step to run (included). ' \ 'By default None so it will run until the end.') parser_exec = subparsers.add_parser('exec', help='Executes a single function from post-processing.', description=help_exec, formatter_class=parser.formatter_class)