diff --git a/video_prediction_tools/env_setup/generate_runscript.py b/video_prediction_tools/env_setup/generate_runscript.py index 0ce5df23dfc602e18dfdc992ef5431546b7c02ad..a342ccbb917f0380ea8b89533787d1ad917496c9 100755 --- a/video_prediction_tools/env_setup/generate_runscript.py +++ b/video_prediction_tools/env_setup/generate_runscript.py @@ -85,7 +85,8 @@ def main(): def check_target_runscript(runscript_name, silent=False): if not runscript_name in known_wrkflw_steps: if not silent: - print("Invalid workflow step '{0}' passed!".format(runscript_name)) + if runscript_name != "help": + print("Invalid workflow step '{0}' passed!".format(runscript_name)) print("Known workflow steps:") for step in known_wrkflw_steps: print("* {0}".format(step)) diff --git a/video_prediction_tools/utils/runscript_generator/config_utils.py b/video_prediction_tools/utils/runscript_generator/config_utils.py index b385b8388131fafed52da7dcd8d4052d92eb465d..0624ceed4bdce9df30bf4cc0277d3f53af621bed 100755 --- a/video_prediction_tools/utils/runscript_generator/config_utils.py +++ b/video_prediction_tools/utils/runscript_generator/config_utils.py @@ -303,7 +303,8 @@ class Config_runscript_base: if check_input(input_req): break else: - if input_req.replace(prefix2arg, "") == "help": + check_input_req = input_req.replace(prefix2arg, "") if prefix2arg else input_req + if check_input_req == "help": pass else: attempt += 1