Mercurial > python-cmd2
comparison cmd2.py @ 265:ba45c2df855b
mark v0.5.2 in code
author | Catherine Devlin <catherine.devlin@gmail.com> |
---|---|
date | Fri, 03 Apr 2009 13:04:39 -0400 |
parents | e81378f82c7c |
children | 584f970ca66a 3333e61e7103 |
comparison
equal
deleted
inserted
replaced
264:e3d00ca39798 | 265:ba45c2df855b |
---|---|
24 """ | 24 """ |
25 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest | 25 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest |
26 import unittest, string, datetime, urllib, glob | 26 import unittest, string, datetime, urllib, glob |
27 from code import InteractiveConsole, InteractiveInterpreter, softspace | 27 from code import InteractiveConsole, InteractiveInterpreter, softspace |
28 from optparse import make_option | 28 from optparse import make_option |
29 __version__ = '0.5.1' | 29 __version__ = '0.5.2' |
30 | 30 |
31 class OptionParser(optparse.OptionParser): | 31 class OptionParser(optparse.OptionParser): |
32 def exit(self, status=0, msg=None): | 32 def exit(self, status=0, msg=None): |
33 self.values._exit = True | 33 self.values._exit = True |
34 if msg: | 34 if msg: |