Mercurial > nagslang
comparison nagslang/options.py @ 454:803d53c86f7f
Don't show debugging shapes by default in DEBUG mode
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 07 Sep 2013 15:23:39 +0200 |
parents | 044b53eb22df |
children |
comparison
equal
deleted
inserted
replaced
453:12c71124bbca | 454:803d53c86f7f |
---|---|
33 dest='music', action='store_false', default=True, | 33 dest='music', action='store_false', default=True, |
34 help='Disable music (but not sound)') | 34 help='Disable music (but not sound)') |
35 | 35 |
36 if options.debug: | 36 if options.debug: |
37 parser.add_option('--area', help='Initial area') | 37 parser.add_option('--area', help='Initial area') |
38 | |
39 if options.debug: | |
40 parser.add_option('--point', help='Initial position x,y') | 38 parser.add_option('--point', help='Initial position x,y') |
39 parser.add_option('--shapes', help='Show collision shapes', | |
40 action='store_true', default=options.shapes) | |
41 | 41 |
42 opts, _ = parser.parse_args(args) | 42 opts, _ = parser.parse_args(args) |
43 | 43 |
44 for k in DEFAULTS: | 44 for k in DEFAULTS: |
45 if getattr(opts, k, None) is not None: | 45 if getattr(opts, k, None) is not None: |