__init__.py 文件源码

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

项目:gopythongo 作者: gopythongo 项目源码 文件源码
def add_args(parser: configargparse.ArgumentParser) -> None:
    global _assemblers

    pos_args = parser.add_argument_group("Python ecosystem arguments (positional)")
    pos_args.add_argument("build_path",
                          help="set the location where the virtual environment will be built, this " +
                               "is IMPORTANT as it is also the location where the virtualenv must " +
                               "ALWAYS reside (i.e. the install directory. Virtualenvs are NOT relocatable" +
                               "by default! All path parameters are relative to this path")
    pos_args.add_argument("packages", metavar="package<=>version", nargs="*",
                          help="a list of package/version specifiers. Remember to quote your " +
                               "strings as in \"Django>=1.9,<1.10\"")

    parser.add_argument("--help-assembler", action=AssemblerHelpAction, choices=_assemblers.keys(), default=None)

    for assembler in _assemblers.values():
        assembler.add_args(parser)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号