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)
评论列表
文章目录