def _positional_validate(self, args, validator_list, varargs, argnames, varargname):
        """Makes sure args follows the validation given input"""
        out_args = list(args)

        for i in range(min(len(args),len(validator_list))):

            if validator_list[i] is not None:
                out_args[i] = self._handle_argument(args[i], validator_list[i], argnames[i])

        if len(args) > len(validator_list):
            if varargs is not None:
                out_args[len(validator_list):] = [
                    self._handle_argument(a, varargs, varargname) for a in args[len(validator_list):]]
            else:
                out_args[len(validator_list):] = args[len(validator_list):]

        return out_args
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/cli/application.py/Application._positional_validate/original