Allow --deck and --load in non-debug mode.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 11:43:40 +0000 (13:43 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 11:43:40 +0000 (13:43 +0200)
naja/options.py

index dd3e69d6904f13e63bb28ebcf5ab35381653bcc0..19d3e741aec5ae02b552af786b949567b6ac7697 100644 (file)
@@ -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)