def parsecmd():
global rankfile, genranks
try:
opts, Names = getopt.getopt(sys.argv[1:], "hcr:", [])
except getopt.GetoptError as err:
# print help information and exit:
print str(err) # will print something like "option -a not recognized"
usage()
sys.exit(2)
for o, a in opts:
if o in ("-c"):
genranks=True
elif o in ("-r"):
rankfile = a
elif o in ("-h"):
usage()
sys.exit(0)
else:
assert False, "unhandled option"
return Names
docxtags.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录