def checkArgumentOrder(self):
    observedArguments = []
    if len(self.argumentOrder) != 0:

      # Loop over the arguments in the list.
      for argument in self.argumentOrder:

        # Get the long form of the argument.
        longFormArgument = self.getLongFormArgument(argument)
        if longFormArgument == None: self.errors.invalidArgumentInArgumentOrder(self.name, argument)

        # Check that the argument is a valid argument for the tool.
        observedArguments.append(longFormArgument)

      # Loop over all the defined tool arguments and ensure that they have been defined in the argument order list.
      missingArguments = []
      for argument in self.arguments:
        if argument not in observedArguments: missingArguments.append(argument)
      if len(missingArguments) > 0: self.errors.incompleteArgumentOrder(self.name, missingArguments)

    return True

  ##############################
  ### Get and set attributes ###
  ##############################

  # Get an argument attribute.
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/toolConfiguration.py/toolConfiguration.checkArgumentOrder/original