__init__.py 文件源码

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

项目:browserstacker 作者: Stranger6667 项目源码 文件源码
def screenshots_options(func):
    return click.option('-o', '--orientation', type=click.Choice(ORIENTATIONS), help='Screen orientation')(
        click.option('-m', '--mac-res', type=click.Choice(MAC_RESOLUTIONS), help='Screen resolution on OS X')(
        click.option('-w', '--win-res', type=click.Choice(WIN_RESOLUTIONS), help='Screen resolution on Windows')(
        click.option('-q', '--quality', type=click.Choice(QUALITIES), help='Quality of the screenshot')(
        click.option('-l', '--local', type=click.Choice(LOCALS), help='Local testing')(
        click.option('-t', '--wait-time', type=click.Choice(WAIT_TIMES), help='Seconds before taking screenshot')(
        click.option('-c', '--callback-url', help='Results will be send to this URL')(func)))))))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号