changeset 240:a31cf334bc16

tweaking documentation
author catherine@dellzilla
date Tue, 24 Mar 2009 14:25:46 -0400
parents e85637123fcd
children af17ead6449d
files cmd2.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Tue Mar 24 14:15:35 2009 -0400
+++ b/cmd2.py	Tue Mar 24 14:25:46 2009 -0400
@@ -807,7 +807,9 @@
             self.pystate['exit'] = quit
             self.pystate[self.nonpythoncommand] = onecmd
             try:
-                interp.interact()
+                cprt = 'Type "help", "copyright", "credits" or "license" for more information.'        
+                interp.interact(banner= "Python %s on %s\n%s\n(%s)\n%s" %
+                       (sys.version, sys.platform, cprt, self.__class__.__name__, self.do_py.__doc__))
             except EmbeddedConsoleExit:
                 return