def checkFromArgument(self, category, argument, instructions):
    allowedFields = []
    allowedFields.append('method')
    allowedFields.append('modify extension')
    allowedFields.append('modify text')
    allowedFields.append('no temp string')
    allowedFields.append('use argument')

    # Loop over the arguments and check if there are any invalid fields supplied.
    for field in instructions:
      if field not in allowedFields: self.errors.invalidConstructionField(self.name, category, argument, 'from tool argument', field, allowedFields)

  # Check 'define name' construction instructions.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkFromArgument/original