parameters: (self, options=None, **kwargs)
return_statement: return changed
docstring: Update the options given key, value pairs
  
          To enable unused warning, include 'warn_unused=True'
docstring_summary: Update the options given key, value pairs
docstring_tokens: Update the options given key value pairs
function: def update(self, options=None, **kwargs):
          """"
          Update the options given key, value pairs
  
          To enable unused warning, include 'warn_unused=True'
          """
  
          # Unused options
          changed = False
          unused = set()
          warn = kwargs.pop('warn_unused', False)
  
          # Update from Options object
          if isinstance(options, Options):
              for key in options.keys():
                  if self.hasOption(key):
                      if options.isOptionValid(key):
                          changed = True
                          self[key] = options[key]
                  else:
                      unused.add(key)
  
          # Update from kwargs
          for k, v in kwargs.items():
              if k in self.__options:
                  changed = True
                  self[k] = v
              else:
                  unused.add(k)
  
          # Warning for unused @todo warning
          if warn and len(unused) > 0:
              msg = 'The following settings where not recognized:'
              for key in unused:
                  msg += ' '*4 + key
              mooseutils.mooseWarning(msg)
  
          return changed
function_tokens: def update ( self , options = None , * * kwargs ) : # Unused options changed = False unused = set ( ) warn = kwargs . pop ( 'warn_unused' , False ) # Update from Options object if isinstance ( options , Options ) : for key in options . keys ( ) : if self . hasOption ( key ) : if options . isOptionValid ( key ) : changed = True self [ key ] = options [ key ] else : unused . add ( key ) # Update from kwargs for k , v in kwargs . items ( ) : if k in self . __options : changed = True self [ k ] = v else : unused . add ( k ) # Warning for unused @todo warning if warn and len ( unused ) > 0 : msg = 'The following settings where not recognized:' for key in unused : msg += ' ' * 4 + key mooseutils . mooseWarning ( msg ) return changed