(self, arguments)
Parses one or more arguments with the installed parser.

    Args:
      arguments: a single argument or a list of arguments (typically a
        list of default values); a single argument is converted
        internally into a list containing one item.
Parses one or more arguments with the installed parser.
Parses one or more arguments with the installed parser .
def Parse(self, arguments):
    """Parses one or more arguments with the installed parser.

    Args:
      arguments: a single argument or a list of arguments (typically a
        list of default values); a single argument is converted
        internally into a list containing one item.
    """
    if not isinstance(arguments, list):
      # Default value may be a list of values.  Most other arguments
      # will not be, so convert them into a single-item list to make
      # processing simpler below.
      arguments = [arguments]

    if self.present:
      # keep a backup reference to list of previously supplied option values
      values = self.value
    else:
      # "erase" the defaults with an empty list
      values = []

    for item in arguments:
      # have Flag superclass parse argument, overwriting self.value reference
      Flag.Parse(self, item)  # also increments self.present
      values.append(self.value)

    # put list of option values back in the 'value' attribute
    self.value = values
def Parse ( self , arguments ) : if not isinstance ( arguments , list ) : # Default value may be a list of values.  Most other arguments # will not be, so convert them into a single-item list to make # processing simpler below. arguments = [ arguments ] if self . present : # keep a backup reference to list of previously supplied option values values = self . value else : # "erase" the defaults with an empty list values = [ ] for item in arguments : # have Flag superclass parse argument, overwriting self.value reference Flag . Parse ( self , item ) # also increments self.present values . append ( self . value ) # put list of option values back in the 'value' attribute self . value = values