regexparser.py 文件源码

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

项目:gopythongo 作者: gopythongo 项目源码 文件源码
def add_args(self, parser: configargparse.ArgumentParser) -> None:
        gr_regex = parser.add_argument_group("Regex Version Parser options")
        gr_regex.add_argument("--version-regex", dest="version_regex", default=None,
                              help="Select the regular expression used to parse the version string read by the version "
                                   "reader. It must contain named groups for 'major', 'minor' and 'patch' and can "
                                   "optionally contain named groups for 'prerelease' and 'metadata' mapping to the "
                                   "fields as described by semver.org. Example: "
                                   "(?P<major>[0-9]+)\.(?P<minor>[0-9]+)\.(?P<patch>[0-9]+)")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号