From eeeca9bb57f2b54a6b709d498bb5a132050d9ef9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 5 Feb 2013 11:52:30 -0500 Subject: [PATCH] Fix 'hint' -> 'help' typos --- quiz.json | 8 ++++---- quizzer/ui/cli.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/quiz.json b/quiz.json index 9677dba..894105e 100644 --- a/quiz.json +++ b/quiz.json @@ -4,12 +4,12 @@ { "prompt": "What is your name?", "answer": "", - "hint": "This should be easy" + "help": "This should be easy" }, { "prompt": "What is your quest?", "answer": "To seek the Holy Grail", - "hint": "Think like a Pythonista", + "help": "Think like a Pythonista", "dependencies": [ "What is your name?" ] @@ -18,7 +18,7 @@ "class": "NormalizedStringQuestion", "prompt": "What is your favourite color?", "answer": "blue", - "hint": "Channel Sir Lancelot", + "help": "Channel Sir Lancelot", "dependencies": [ "What is your quest?" ] @@ -26,7 +26,7 @@ { "prompt": "What is the capital of Assyria?", "answer": "I don't know that", - "hint": "Sir Robin didn't know it either", + "help": "Sir Robin didn't know it either", "dependencies": [ "What is your quest?" ] diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index b28d89f..3ff4ce5 100644 --- a/quizzer/ui/cli.py +++ b/quizzer/ui/cli.py @@ -20,7 +20,7 @@ class CommandLineInterface (UserInterface): if a in ['?', 'help']: print() print(question.prompt) - print(question.hint) + print(question.help) continue break correct = self.process_answer(question=question, answer=answer) -- 2.26.2