quiz: Add copyright metadata
[quizzer.git] / quizzer / ui / cli.py
index 22d4b9b3e017ce25734307f7d850f939d5a52b31..464faec2ee62c0942299354684b03ab9e6228084 100644 (file)
@@ -157,6 +157,13 @@ class QuestionCommandLine (_cmd.Cmd):
         self._reset()
         print(self.question.format_help())
 
+    def do_copyright(self, arg):
+        "Print the quiz copyright notice"
+        if self.ui.quiz.copyright:
+            print('\n'.join(self.ui.quiz.copyright))
+        else:
+            print(self.ui.quiz.copyright)
+
     def do_help(self, arg):
         'List available commands with "help" or detailed help with "help cmd"'
         if not arg: