@cli.command('display')
@processor
def display_cmd(images):
 for image in images:
  click.echo(('Displaying "%s"' % image.filename))
  image.show()
  (yield image)

@ cli . command ( 'display' ) @ processor def display_cmd ( images ) : for image in images : click . echo ( ( 'Displaying "%s"' % image . filename ) ) image . show ( ) ( yield image )
opens all images in an image viewer .