def DuplicateFlags(flagnames=None):
 flag_values = gflags.FlagValues()
 for name in flagnames:
  gflags.DEFINE_boolean(name, False, ('Flag named %s' % (name,)), flag_values=flag_values)
 return flag_values

def DuplicateFlags ( flagnames = None ) : flag_values = gflags . FlagValues ( ) for name in flagnames : gflags . DEFINE_boolean ( name , False , ( 'Flag named %s' % ( name , ) ) , flag_values = flag_values ) return flag_values
returns a new flagvalues object with the requested flagnames .