(prog)
return parser
Create an argument parser, adding in the list of providers.
Create an argument parser, adding in the list of providers.
Create an argument parser adding in the list of providers .
def create_parser(prog):
  """Create an argument parser, adding in the list of providers."""
  parser = argparse.ArgumentParser(
      prog=prog, formatter_class=argparse.RawDescriptionHelpFormatter)

  parser.add_argument(
      '--provider',
      default='google-v2',
      choices=['local', 'google-v2', 'google-cls-v2', 'test-fails'],
      help="""Job service provider. Valid values are "google-v2" (Google's
        Pipeline API v2alpha1), "google-cls-v2" (Google's Pipelines API v2beta)
        and "local" (local Docker execution).
        "test-*" providers are for testing purposes only.
        (default: google-v2)""",
      metavar='PROVIDER')

  return parser
def create_parser ( prog ) : parser = argparse . ArgumentParser ( prog = prog , formatter_class = argparse . RawDescriptionHelpFormatter ) parser . add_argument ( '--provider' , default = 'google-v2' , choices = [ 'local' , 'google-v2' , 'google-cls-v2' , 'test-fails' ] , help = """Job service provider. Valid values are "google-v2" (Google's
        Pipeline API v2alpha1), "google-cls-v2" (Google's Pipelines API v2beta)
        and "local" (local Docker execution).
        "test-*" providers are for testing purposes only.
        (default: google-v2)""" , metavar = 'PROVIDER' ) return parser