docxtags.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:office-interoperability-tools 作者: milossramek 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号