Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix wronglogic.

  • Loading branch information...
commit 6f3335abecd4208eec527f44784e6bb634392de0 1 parent b3b8ddc
@tmcw tmcw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mb-util
View
4 mb-util
@@ -35,13 +35,13 @@ if __name__ == '__main__':
parser.add_option('--image_format', dest='format',
help='''The format of the image tiles, either png or jpg''',
- type='string',
+ choices=['png', 'jpg'],
default='png')
(options, args) = parser.parse_args()
# Transfer operations
- if 4 < len(args) < 2:
+ if len(args) != 2:
parser.print_help()
sys.exit(1)
Please sign in to comment.
Something went wrong with that request. Please try again.