def checkAttributeValues(self):

    # Loop over all the arguments.
    for argument in self.arguments:

      # If modify argument is populated, check that the supplied value is valid.
      value = self.getArgumentAttribute(argument, 'modifyArgument')
      if value:
  
        # Define the valid values.
        validValues = [
                        'omit',
                        'stdout'
                      ]
  
        # Check that the supplied value is valid.
        #TODO ERROR
        if value not in validValues:
          if self.allowTermination: self.errors.invalidValues(self.name, argument, 'modifyArgument', value, validValues)
          else:
            self.success = False
            return False

  # Check that instructions for handling an input stream are correct.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkAttributeValues/original