parameters: (self, value)
docstring: Return whether the flag value matches the given value. The values
          are canonicalized for comparison.
docstring_summary: Return whether the flag value matches the given value. The values
          are canonicalized for comparison.
docstring_tokens: Return whether the flag value matches the given value . The values are canonicalized for comparison .
function: def matches(self, value):
          '''
          Return whether the flag value matches the given value. The values
          are canonicalized for comparison.
          '''
          if value in ('yes', 'true', '1', True):
              return self.value in ('yes', 'true', '1', True)
          if value in ('no', 'false', '0', False):
              return self.value in ('no', 'false', '0', False, None)
          raise RuntimeError('Invalid value: %s' % value)
function_tokens: def matches ( self , value ) : if value in ( 'yes' , 'true' , '1' , True ) : return self . value in ( 'yes' , 'true' , '1' , True ) if value in ( 'no' , 'false' , '0' , False ) : return self . value in ( 'no' , 'false' , '0' , False , None ) raise RuntimeError ( 'Invalid value: %s' % value )