searchfile.py 文件源码

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

项目:gopythongo 作者: gopythongo 项目源码 文件源码
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.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号