From: W. Trevor King Date: Wed, 6 Feb 2013 21:35:57 +0000 (-0500) Subject: ui.cli: Quit after the last question X-Git-Tag: v0.1~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dbbabd809a5679afa3ae70ce7ff4d22f487cebe0;p=quizzer.git ui.cli: Quit after the last question Oops, should have tested that when I transitioned to Cmd ;). --- diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index f133362..d2859cf 100644 --- a/quizzer/ui/cli.py +++ b/quizzer/ui/cli.py @@ -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: