cli.py 文件源码

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

项目:HashDigestBot 作者: wagnerluis1982 项目源码 文件源码
def __init__(self, option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None,
                 required=False, help=None, metavar=None):
        if not option_strings:
            raise ValueError('at least one option argument must be supplied')
        if nargs == 0:
            raise ValueError('nargs for option-values actions must be > 0')
        if const is not None and nargs != argparse.OPTIONAL:
            raise ValueError('nargs must be %r to supply const' % argparse.OPTIONAL)
        super().__init__(option_strings, dest, nargs, const, default, type, choices, required, help, metavar)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号