projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5cb3715
)
Allow --deck and --load in non-debug mode.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 11:43:40 +0000
(13:43 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 11:43:40 +0000
(13:43 +0200)
naja/options.py
patch
|
blob
|
history
diff --git
a/naja/options.py
b/naja/options.py
index dd3e69d6904f13e63bb28ebcf5ab35381653bcc0..19d3e741aec5ae02b552af786b949567b6ac7697 100644
(file)
--- a/
naja/options.py
+++ b/
naja/options.py
@@
-59,16
+59,20
@@
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")
+ parser.add_option('--deck', default=None,
+ help='Start with a new game for a specific deck'
+ ' (bypassing the menu).')
+
+ parser.add_option('--load', default=None, type=int,
+ help='Start with a specific save game loaded'
+ ' (bypassing the menu). Slot values are 0-7.')
+
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')
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')
- parser.add_option('--deck', default=None,
- help='Start with a new game for a specific deck')
- parser.add_option('--load', default=None, type=int,
- help='Start with a specific save game loaded (0-7)')
opts, _ = parser.parse_args(args)
opts, _ = parser.parse_args(args)