Permalink
Browse files

Fix wronglogic.

  • Loading branch information...
1 parent b3b8ddc commit 6f3335abecd4208eec527f44784e6bb634392de0 @tmcw tmcw committed Jan 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mb-util
View
@@ -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)

0 comments on commit 6f3335a

Please sign in to comment.