parameters: (self, definition)
docstring: Add a flag value definition. Replaces any previously set value.
docstring_summary: Add a flag value definition. Replaces any previously set value.
docstring_tokens: Add a flag value definition . Replaces any previously set value .
function: def add_definition(self, definition):
          '''
          Add a flag value definition. Replaces any previously set value.
          '''
          if definition == self.name:
              self.value = True
              return
          assert(definition.startswith(self.name))
          if definition[len(self.name)] != '=':
              return errors.fatal('Malformed flag: %s' % definition)
          value = definition[len(self.name) + 1:]
          if value in ('yes', 'true', '1', 'no', 'false', '0'):
              self.value = value
          else:
              return errors.fatal('Unknown value in: %s' % definition)
function_tokens: def add_definition ( self , definition ) : if definition == self . name : self . value = True return assert ( definition . startswith ( self . name ) ) if definition [ len ( self . name ) ] != '=' : return errors . fatal ( 'Malformed flag: %s' % definition ) value = definition [ len ( self . name ) + 1 : ] if value in ( 'yes' , 'true' , '1' , 'no' , 'false' , '0' ) : self . value = value else : return errors . fatal ( 'Unknown value in: %s' % definition )