def add_args(self, parser: configargparse.ArgumentParser) -> None:
gp_search = parser.add_argument_group("Search File Versioner options")
gp_search.add_argument("--search-version-in", dest="search_version_in", default=None,
help="The file to read to find the version string.")
gp_search.add_argument("--search-version-regex", dest="search_version_regex",
default="([0-9]+\.[0-9]+\.[0-9]+\.?(dev|rc|pre|post)?)",
help="Define the regular expression that we search for. The first match wins.")
评论列表
文章目录