in migration/bring-your-own-role/byor.py [0:0]
def _parse_args():
parser = argparse.ArgumentParser(description='Tool which grant your role ability to work for specified Project.')
subparsers = parser.add_subparsers(dest='command', help='The action you want to take.')
# Parser for use-your-own-role command
parser_use_own_role = subparsers.add_parser(ROLE_REPLACEMENT, help='Enhance your own role to use.')
parser_use_own_role.add_argument('--force-update',
help='WARNING: Setting this flag to True allows the script to stop existing resources. Only use if you explicitly accept compute resources stopping.',
action='store_true',
default=False)
_add_common_arguments(parser_use_own_role)
# Parser for enhance-project-role command
parser_enhance = subparsers.add_parser(ROLE_ENHANCEMENT, help='Enhance existing Project Role.')
_add_common_arguments(parser_enhance)
return parser.parse_args()