Skip to content

Commit

Permalink
Merge pull request #293 from bgilbert/enum
Browse files Browse the repository at this point in the history
examples/deepzoom: enforce `--format` enum in argparse
  • Loading branch information
bgilbert authored Oct 26, 2024
2 parents 2a040ab + 0936865 commit baf1c54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/deepzoom/deepzoom_multiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ def __init__(self, relpath: str):
parser.add_argument(
'-f',
'--format',
metavar='{jpeg|png}',
dest='DEEPZOOM_FORMAT',
choices=['jpeg', 'png'],
help='image format for tiles [jpeg]',
)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion examples/deepzoom/deepzoom_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ def xfrm(img: Image.Image) -> None:
parser.add_argument(
'-f',
'--format',
metavar='{jpeg|png}',
dest='DEEPZOOM_FORMAT',
choices=['jpeg', 'png'],
help='image format for tiles [jpeg]',
)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion examples/deepzoom/deepzoom_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ def _shutdown(self) -> None:
parser.add_argument(
'-f',
'--format',
metavar='{jpeg|png}',
dest='format',
default='jpeg',
choices=['jpeg', 'png'],
help='image format for tiles [jpeg]',
)
parser.add_argument(
Expand Down

0 comments on commit baf1c54

Please sign in to comment.