diff cmd2.py @ 240:a31cf334bc16

tweaking documentation
author catherine@dellzilla
date Tue, 24 Mar 2009 14:25:46 -0400
parents e91808980e59
children af17ead6449d
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