Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def generate_image_cli(parser=None):
if not parser:
parser = argparse.ArgumentParser()
add_main_cli_arguments(parser)
add_image_cli_options(parser)
return parser
def generate_model_cli(parser=None):
if not parser:
parser = argparse.ArgumentParser()
add_main_cli_arguments(parser)
model_group = parser.add_argument_group(title="model options")
add_model_cli_options(model_group)
image_group = parser.add_argument_group(title="image options")
add_image_cli_options(image_group, prefix="image-")
return parser