

@cli.command('open')
@click.option('-i', '--image', 'images', type=click.Path(), multiple=True, help='The image file to open.')
@generator
def open_cmd(images):
    'Loads one or multiple images for processing.  The input parameter\n    can be specified multiple times to load more than one image.\n    '
    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(e)
            (yield img)
        except Exception as e:
            click.echo(('Could not open image "%s": %s' % (image, e)), err=True)

dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py open_cmd/VarMisuse@112/192 `image`->`e`