Skip to content

Commit

Permalink
Fix wronglogic.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Jan 29, 2013
1 parent b3b8ddc commit 6f3335a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mb-util
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ if __name__ == '__main__':


parser.add_option('--image_format', dest='format', parser.add_option('--image_format', dest='format',
help='''The format of the image tiles, either png or jpg''', help='''The format of the image tiles, either png or jpg''',
type='string', choices=['png', 'jpg'],
default='png') default='png')


(options, args) = parser.parse_args() (options, args) = parser.parse_args()


# Transfer operations # Transfer operations
if 4 < len(args) < 2: if len(args) != 2:
parser.print_help() parser.print_help()
sys.exit(1) sys.exit(1)


Expand Down

0 comments on commit 6f3335a

Please sign in to comment.