@cli.command('open')
@click.option('-i', '--image', 'images', type=click.Path(),
              multiple=True, help='The image file to open.')
@generator
def open_cmd(images):
    for image in images:
        try:
            click.echo('Opening "%s"' % image)
            if image == '-':
                img = Image.open(click.get_binary_stdin())
                img.filename = '-'
            else:
                img = Image.open(image)
            yield img
        except Exception as e:
            click.echo('Could not open image "%s": %s' % (image, e), err=True)
Loads one or multiple images for processing.  The input parameter
dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py/open_cmd