__init__.py 文件源码

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

项目:ansible-role 作者: mattvonrocketstein 项目源码 文件源码
def get_parser():
    """ creates the parser for the ansible-role command line utility """
    parser = argparse.ArgumentParser(
        prog=os.path.split(sys.argv[0])[-1],
        formatter_class=HelpFormatter,)
    parser.add_argument('rolename', type=str, nargs=1,)
    parser.add_argument('host', type=str, nargs='?', default='localhost',)
    parser.add_argument('--module-path', '-M',)
    return parser
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号