

def __init__(self, name, mode=None, description='', default=None, validator=None):
    '\n        Constructor\n\n        :param name: The argument name\n        :type name: str\n        :param mode: The argument mode: REQUIRED or OPTIONAL\n        :type mode: int or None\n        :param description: A description text\n        :type description: str\n        :param default: The default value (for OPTIONAL mode only)\n        :type default: mixed\n        :param validator: A Validator instance or a callable\n        :type validator: Validator or callable\n        '
    if (mode is None):
        mode = self.OPTIONAL
    elif ((not isinstance(mode, int)) or (mode > 7) or (default < 1)):
        raise Exception(('Argument mode "%s" is not valid.' % mode))
    self.__name = name
    self.__mode = mode
    self.__description = (description or '')
    self.__validator = VALIDATORS.get(validator)
    self.set_default(default)

dataset/ETHPy150Open sdispater/cleo/cleo/inputs/input_argument.py InputArgument.__init__/VarMisuse@65/229 `mode`->`default`