def checkArguments(self, category, arguments, allowedAttributes, isInput, isOutput):

    # Loop over all of the input arguments and check their validity.
    for argumentInformation in arguments:

      # Define a set of information to be used in help messages.
      helpInfo = (self.name, 'arguments', category)

      # Define a class to store task attribtues.
      attributes = argumentAttributes()

      # Check all the supplied attributes.
      self.success, attributes = methods.checkAttributes(argumentInformation, allowedAttributes, attributes, self.allowTermination, helpInfo)

      # Check that the argument name is unique.
      if attributes.longFormArgument in self.arguments:
        if self.allowTermination: self.errors.repeatedLongFormArgument(helpInfo, attributes.longFormArgument)
        else:
          self.success = False
          return

      if self.shortFormArguments in attributes.shortFormArgument:
        if self.allowTermination: self.errors.repeatedShortFormArgument(helpInfo, attributes.longFormArgument, attributes.shortFormArgument)
        else:
          self.success = False
          return

      # Define the argument category.
      attributes.category = category

      # Store the attributes for the argument.
      if isInput: attributes.isInput = True
      elif isOutput: attributes.isOutput = True
      self.arguments[attributes.longFormArgument] = attributes
      self.shortFormArguments.append(attributes.shortFormArgument)

  # Check the contents of the information supplied for the web page.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkArguments/swapped operands of `in`