cmdline.py 文件源码

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

项目:seproxer 作者: Rastii 项目源码 文件源码
def __call__(self, parser, namespace, values, option_string=None):
        _ = parser, option_string  # NOQA

        try:
            result = self._enum_type[values]
        except KeyError:
            raise argparse.ArgumentError(
                self, "{} not a valid choice of {}".format(values, self.choices))

        setattr(namespace, self.dest, result)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号