def main(self, args):
        self._validate(args)
        path = args[0].split('--template-file=')[1]
        if os.path.isfile(path):
            self.parse(path)
        elif toscaparser.utils.urlutils.UrlUtils.validate_url(path):
            self.parse(path, False)
        else:
            raise ValueError(_('"%(path)s" is not a valid file.')
                             * {'path': path})
dataset/ETHPy150Open openstack/tosca-parser/toscaparser/shell.py/ParserShell.main/operator `%` -> `*`