targz.py 文件源码

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

项目:gopythongo 作者: gopythongo 项目源码 文件源码
def add_args(self, parser: configargparse.ArgumentParser) -> None:
        gp_tgz = parser.add_argument_group("Tar/Gzip Packer options")
        gp_tgz.add_argument("--targz-basename", dest="targz_basename", default=None,
                            help="Each .tar.gz created by each instance of --targz in the parameters will be named "
                                 "[basename]_[ext]-[version].tar.gz where [ext] is specified in --targz and [version] "
                                 "is retrieved from the selected Versioner")
        gp_tgz.add_argument("--targz", dest="targz", action="append", default=[],
                            help="Takes an argument in the form 'ext:path' where 'ext' is appended to the "
                                 "targz-basename and then the contents of path are stored and compressed in a .tar.gz "
                                 "archive. 'ext' is optional, but be careful to not overwrite your archives when you "
                                 "use multiple --targz arguments.")
        gp_tgz.add_argument("--targz-relative", dest="targz_relative", action="store_true", default=False,
                            help="Store relative paths in the .tar.gz archives.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号