debug.py 文件源码

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

项目:zellij 作者: nedbat 项目源码 文件源码
def debug_type(s):
    # I am certain there's a better way to get click to do this...
    global DEBUGS
    debugs = [sp.strip() for sp in re.split(r"[ ,;]+", s)]
    debugs = [d for d in debugs if d]
    for d in debugs:
        if d not in VALID_DEBUGS:
            raise click.BadOptionUsage(f"--debug={d}?? Choose from {', '.join(VALID_DEBUGS)}")
    DEBUGS = debugs
    return debugs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号