Ran update_copyright.py
[hooke.git] / hooke / ui / commandline.py
index 005e039724eac468ba2b4f3c019df8fd29913f70..c601ddcc27e9f2bb6568274508503142567bbe7c 100644 (file)
@@ -2,15 +2,15 @@
 #
 # This file is part of Hooke.
 #
-# Hooke is free software: you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation, either
-# version 3 of the License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
 #
-# Hooke is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Lesser General Public License for more details.
+# Hooke is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
+# Public License for more details.
 #
 # You should have received a copy of the GNU Lesser General Public
 # License along with Hooke.  If not, see
@@ -290,7 +290,7 @@ class LocalHelpCommand (Command):
                      help='The name of the command you want help with.')
             ]
 
-    def _run(self, commands, inqueue, outqueue, params):
+    def _run(self, hooke, inqueue, outqueue, params):
         raise NotImplementedError # cmd.Cmd already implements .do_help()
 
 class LocalExitCommand (Command):
@@ -307,7 +307,7 @@ typing mistakes ;).
 """.strip()),
                 ])
 
-    def _run(self, commands, inqueue, outqueue, params):
+    def _run(self, hooke, inqueue, outqueue, params):
         """The guts of the `do_exit/_quit/_EOF` commands.
 
         A `True` return stops :meth:`.cmdloop` execution.
@@ -411,7 +411,9 @@ class CommandLine (UserInterface):
 
     def run(self, commands, ui_to_command_queue, command_to_ui_queue):
         cmd = self._cmd(commands, ui_to_command_queue, command_to_ui_queue)
-        cmd.cmdloop(self._splash_text())
+        cmd.cmdloop(self._splash_text(extra_info={
+                    'get-details':'run `license`',
+                    }))
 
     def run_lines(self, commands, ui_to_command_queue, command_to_ui_queue,
                   lines):