Mercurial > python-cmd2
comparison cmd2.py @ 240:a31cf334bc16
tweaking documentation
author | catherine@dellzilla |
---|---|
date | Tue, 24 Mar 2009 14:25:46 -0400 |
parents | e91808980e59 |
children | af17ead6449d |
comparison
equal
deleted
inserted
replaced
239:e85637123fcd | 240:a31cf334bc16 |
---|---|
805 return self.onecmd(arg + '\n') | 805 return self.onecmd(arg + '\n') |
806 self.pystate['quit'] = quit | 806 self.pystate['quit'] = quit |
807 self.pystate['exit'] = quit | 807 self.pystate['exit'] = quit |
808 self.pystate[self.nonpythoncommand] = onecmd | 808 self.pystate[self.nonpythoncommand] = onecmd |
809 try: | 809 try: |
810 interp.interact() | 810 cprt = 'Type "help", "copyright", "credits" or "license" for more information.' |
811 interp.interact(banner= "Python %s on %s\n%s\n(%s)\n%s" % | |
812 (sys.version, sys.platform, cprt, self.__class__.__name__, self.do_py.__doc__)) | |
811 except EmbeddedConsoleExit: | 813 except EmbeddedConsoleExit: |
812 return | 814 return |
813 | 815 |
814 def do_history(self, arg): | 816 def do_history(self, arg): |
815 """history [arg]: lists past commands issued | 817 """history [arg]: lists past commands issued |