(args)
Raise an error if the provider doesn't support a provided flag.
Raise an error if the provider doesn't support a provided flag.
Raise an error if the provider doesn t support a provided flag .
def check_for_unsupported_flag(args):
  """Raise an error if the provider doesn't support a provided flag."""
  if args.label and args.provider not in [
      'test-fails', 'local', 'google-v2', 'google-cls-v2'
  ]:
    raise ValueError(
        '--label is not supported by the "%s" provider.' % args.provider)
def check_for_unsupported_flag ( args ) : if args . label and args . provider not in [ 'test-fails' , 'local' , 'google-v2' , 'google-cls-v2' ] : raise ValueError ( '--label is not supported by the "%s" provider.' % args . provider )