How to use the yoga.image.cli.add_image_cli_options function in yoga

To help you get started, we’ve selected a few yoga examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wanadev / yoga / yoga / cli.py View on Github external
def generate_image_cli(parser=None):
    if not parser:
        parser = argparse.ArgumentParser()
    add_main_cli_arguments(parser)
    add_image_cli_options(parser)
    return parser
github wanadev / yoga / yoga / cli.py View on Github external
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