ui.cli: Quit after the last question
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 21:35:57 +0000 (16:35 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 21:39:04 +0000 (16:39 -0500)
Oops, should have tested that when I transitioned to Cmd ;).

quizzer/ui/cli.py

index f133362f2a773069a094d5816fe3f2f46ae28845..d2859cfdbd15e6cf07599034cdddd61f4717f6a6 100644 (file)
@@ -61,10 +61,10 @@ class QuestionCommandLine (_cmd.Cmd):
         if self.question.multiline:
             self._set_ps2()
         else:
-            self._answer()
+            return self._answer()
 
     def emptyline(self):
-        self._answer()
+        return self._answer()
 
     def _answer(self):
         if self.question.multiline: