Restore use of command line args.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 25 Feb 2017 04:18:10 +0000 (23:18 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 25 Feb 2017 04:18:10 +0000 (23:18 -0500)
sst.py

diff --git a/sst.py b/sst.py
index 97e038796f9d44a20f9731c66ba12d420acdee78..8a6c772f66805be79c510d36c7a250f6326b010a 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -3156,6 +3156,7 @@ def finish(ifin):
         prout(_("to think about pigeons."))
         game.gamewon = True
     score()
+    scanner.chew()     # Clean up leftovers
 
 def score():
     "Compute player's score."
@@ -5856,9 +5857,9 @@ def choose():
         game.tourn = game.length = 0
         game.thawed = False
         game.skill = SKILL_NONE
-        scanner.chew()
-#        if not scanner.inqueue: # Can start with command line options
-        proutn(_("Would you like a regular, tournament, or saved game? "))
+        # Do not chew here, we want to use command-line tokens
+        if not scanner.inqueue: # Can start with command line options
+            proutn(_("Would you like a regular, tournament, or saved game? "))
         scanner.nexttok()
         if scanner.sees("tournament"):
             while scanner.nexttok() == "IHEOL":