projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A (debug) way to start with more bits
[naja.git]
/
naja
/
options.py
diff --git
a/naja/options.py
b/naja/options.py
index 6e5f00d723be67c9e9ef5c15bc0666fe99b05b2e..e280b67773b9e0703cbf9f47fa6b7bfeb9cc60a3 100644
(file)
--- a/
naja/options.py
+++ b/
naja/options.py
@@
-32,6
+32,10
@@
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')
+
opts, _ = parser.parse_args(args)
for k in DEFAULTS:
opts, _ = parser.parse_args(args)
for k in DEFAULTS: