def add_args(self, parser: configargparse.ArgumentParser) -> None:
_aptly_args.add_shared_args(parser)
gr_aptly = parser.add_argument_group("Aptly Versioner options")
gr_aptly.add_argument("--aptly-fallback-version", dest="aptly_fallback_version", default=None,
help="If the APT repository does not yet contain a package with the name specified by "
"--aptly-query, the Aptly Versioner can return a fallback value. This is useful "
"for fresh repositories.")
gr_aptly.add_argument("--aptly-versioner-opts", dest="aptly_versioner_opts", default="",
help="Specify additional command-line parameters which will be appended to every "
"invocation of aptly by the Aptly Versioner.")
gr_aptly.add_argument("--aptly-query", dest="aptly_query", default=None,
help="Set the query to run on the aptly repo. For example: get the latest revision of a "
"specific version through --aptly-query='Name ([yourpackage]), $Version (>=0.9.5), "
"Version (<=0.9.6)'). More information on the query syntax can be found on "
"https://aptly.info. To find the overall latest version of GoPythonGo in a repo, "
"you would use --aptly-query='Name (gopythongo)'")
评论列表
文章目录