def _InternalDeclareKeyFlags(flag_names, flag_values=FLAGS, key_flag_values=None):
 key_flag_values = (key_flag_values or flag_values)
 module = _GetCallingModule()
 for flag_name in flag_names:
  if (flag_name not in flag_values):
   raise UnrecognizedFlagError(flag_name)
  flag = flag_values.FlagDict()[flag_name]
  key_flag_values._RegisterKeyFlagForModule(module, flag)

def _InternalDeclareKeyFlags ( flag_names , flag_values = FLAGS , key_flag_values = None ) : key_flag_values = ( key_flag_values or flag_values ) module = _GetCallingModule ( ) for flag_name in flag_names : if ( flag_name not in flag_values ) : raise UnrecognizedFlagError ( flag_name ) flag = flag_values . FlagDict ( ) [ flag_name ] key_flag_values . _RegisterKeyFlagForModule ( module , flag )
declares a flag as key for the calling module .