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 4c5abea84372449ce6fe57f6390962fb32fbf4b6..5c80b1b32f3cd834fb7ebc5ea4391964a22ade2c 100644
(file)
--- a/
naja/options.py
+++ b/
naja/options.py
@@
-35,14
+35,15
@@
def parse_args(args):
if options.debug:
parser.add_option('--initial-bits', type=int,
help='Initial player bits')
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
- options['cheat_enabled'] = False
def _get_default_save_location():
def _get_default_save_location():