Fix 'hint' -> 'help' typos
authorW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 16:52:30 +0000 (11:52 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 5 Feb 2013 16:52:30 +0000 (11:52 -0500)
quiz.json
quizzer/ui/cli.py

index 9677dba3574d40271b28ad43a52a2a9dea90b116..894105e627cea9702fc02b14d0d47a9b385baafa 100644 (file)
--- 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?"
                                ]
index b28d89f798d3bd2baedcf378b430fe6cd248d3a8..3ff4ce547f83283ab80c18c70ca27d4da2ccb097 100644 (file)
@@ -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)