def _validate(self, args):
        if len(args) < 1:
            msg = _('The program requires a template or a CSAR file as an '
                    'argument. Please refer to the usage documentation.')
            raise ValueError(msg)
        if "--template-file=" not in args[0]:
            msg = _('The program expects "--template-file" as the first '
                    'argument. Please refer to the usage documentation.')
            raise ValueError(msg)
dataset/ETHPy150Open openstack/tosca-parser/toscaparser/shell.py/ParserShell._validate/original