parameters: (module, flag_values=FLAGS)
docstring: Declares that all flags key to a module are key to the current module.
  
    Args:
      module: A module object.
      flag_values: A FlagValues object.  This should almost never need
        to be overridden.
  
    Raises:
      FlagsError: When given an argument that is a module name (a
      string), instead of a module object.
docstring_summary: Declares that all flags key to a module are key to the current module.
docstring_tokens: Declares that all flags key to a module are key to the current module .
function: def ADOPT_module_key_flags(module, flag_values=FLAGS):
    """Declares that all flags key to a module are key to the current module.
  
    Args:
      module: A module object.
      flag_values: A FlagValues object.  This should almost never need
        to be overridden.
  
    Raises:
      FlagsError: When given an argument that is a module name (a
      string), instead of a module object.
    """
    # NOTE(salcianu): an even better test would be if not
    # isinstance(module, types.ModuleType) but I didn't want to import
    # types for such a tiny use.
    if isinstance(module, str):
      raise FlagsError('Received module name %s; expected a module object.'
                       % module)
    _InternalDeclareKeyFlags(
        [f.name for f in flag_values._GetKeyFlagsForModule(module.__name__)],
        flag_values=flag_values)
function_tokens: def ADOPT_module_key_flags ( module , flag_values = FLAGS ) : # NOTE(salcianu): an even better test would be if not # isinstance(module, types.ModuleType) but I didn't want to import # types for such a tiny use. if isinstance ( module , str ) : raise FlagsError ( 'Received module name %s; expected a module object.' % module ) _InternalDeclareKeyFlags ( [ f . name for f in flag_values . _GetKeyFlagsForModule ( module . __name__ ) ] , flag_values = flag_values )