From: Simon Cross Date: Sat, 17 May 2014 11:43:40 +0000 (+0200) Subject: Allow --deck and --load in non-debug mode. X-Git-Tag: 0.1~119 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=5169e372472c650f1f936bb385f58f146910cd6f;p=naja.git Allow --deck and --load in non-debug mode. --- diff --git a/naja/options.py b/naja/options.py index dd3e69d..19d3e74 100644 --- 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('--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') - 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)