openslide / openslide-python

Python bindings to OpenSlide
https://openslide.org/
GNU Lesser General Public License v2.1
374 stars 183 forks source link

examples/deepzoom: enforce `--format` enum in argparse #293

Closed bgilbert closed 1 month ago

bgilbert commented 1 month ago

Give clearer feedback if the argument is invalid. For the WSGI programs we need to continue enforcing validity outside of argparse, since the value may be set by other means.

openslide-bot commented 1 month ago

DCO signed off :heavy_check_mark:

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.