'Remove the argument matching the given name.'

def remove_argument(self, name):

    for (index, arg) in enumerate(self.args[:]):
        if (name == arg.name):
            del self.args[index]
            break
    return self
