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