def set_default(self, default=None):
        if self.is_required() and default is not None:
            raise Exception('Cannot set a default value except for InputArgument::OPTIONAL mode.')

        if self.is_list():
            if default is None:
                default = []
            elif not isinstance(default, list):
                raise Exception('A default value for an array argument must be an array.')

        self.__default = default
Sets the default value.
dataset/ETHPy150Open sdispater/cleo/cleo/inputs/input_argument.py/InputArgument.set_default