projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use centering on Credits screen.
[naja.git]
/
naja
/
options.py
diff --git
a/naja/options.py
b/naja/options.py
index 6e5f00d723be67c9e9ef5c15bc0666fe99b05b2e..5c80b1b32f3cd834fb7ebc5ea4391964a22ade2c 100644
(file)
--- a/
naja/options.py
+++ b/
naja/options.py
@@
-32,12
+32,18
@@
def parse_args(args):
parser.add_option("--save-location", default=_get_default_save_location(),
dest="save_location", help="Saved game location")
parser.add_option("--save-location", default=_get_default_save_location(),
dest="save_location", help="Saved game location")
+ if options.debug:
+ parser.add_option('--initial-bits', type=int,
+ help='Initial player bits')
+ parser.add_option('--cheat-enabled', default=False,
+ action='store_true',
+ help='For those too lazy to type the KONAMI code')
+
opts, _ = parser.parse_args(args)
for k in DEFAULTS:
if getattr(opts, k, None) is not None:
options[k] = getattr(opts, k)
opts, _ = parser.parse_args(args)
for k in DEFAULTS:
if getattr(opts, k, None) is not None:
options[k] = getattr(opts, k)
- options['save_location'] = opts.save_location
def _get_default_save_location():
def _get_default_save_location():