#!/usr/bin/env python
#coding=utf-8
import getopt
import sys
from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.acs_exception.exceptions import ClientException
from aliyunsdkcore.acs_exception.exceptions import ServerException
from aliyunsdkcdn.request.v20180510.RefreshObjectCachesRequest import RefreshObjectCachesRequest
def main(argv):
try:
options, args = getopt.getopt(argv, “hu:t:”, [“help”, “url=”, “type=”])
except getopt.GetoptError:
sys.exit()
url=""
type=""
for option, value in options:
if option in ("-h", “–help”):
print(“help”)
if option in ("-u", “–url”):
url=value
print(“url is: {0}”.format(url))
if option in ("-t", “–type”):
type=value
print(“type is: {0}”.format(type))
print(“error args: {0}”.format(args))
if len(url)==0 or le