in src/prepare_dlc_dev_environment.py [0:0]
def get_args():
"""
Manage arguments to this script when called directly
"""
parser = argparse.ArgumentParser()
parser.add_argument(
"--partner_toml",
default=get_dlc_developer_config_path(),
help="TOML file with partner developer information",
)
parser.add_argument(
"-t",
"--tests",
nargs="+",
choices=VALID_TEST_TYPES,
default=VALID_TEST_TYPES,
help="Types of tests to run",
)
parser.add_argument(
"-b",
"--buildspecs",
nargs="+",
help="Path to a buildspec file from the deep-learning-containers folder",
)
parser.add_argument(
"-r",
"--restore",
action="store_true",
help="Restore the TOML file and provided buildspec files to their original state",
)
parser.add_argument(
"-c",
"--commit",
action="store_true",
help="Adds files changed, commits them locally",
)
parser.add_argument(
"-p",
"--push",
help="Push change to remote specified (i.e. origin)",
)
parser.add_argument(
"-n",
action="store_true",
help="Create a currency buildspec and update toml",
)
parser.add_argument(
"-o",
action="store_true",
help="Comments out autopatch_build and uncomments build_tag_override in buildspec",
)
return parser.parse_args()