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)))))))
评论列表
文章目录