Mercurial > python-cmd2
comparison cmd2.py @ 243:de3e2a040279
oops, updating version numbers in code
author | catherine@dellzilla |
---|---|
date | Tue, 24 Mar 2009 15:44:27 -0400 |
parents | d36ffc16f575 |
children | e0c60ea7ad5d |
comparison
equal
deleted
inserted
replaced
242:d36ffc16f575 | 243:de3e2a040279 |
---|---|
27 """ | 27 """ |
28 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest | 28 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest |
29 import unittest, string, datetime, urllib, inspect | 29 import unittest, string, datetime, urllib, inspect |
30 from code import InteractiveConsole, InteractiveInterpreter, softspace | 30 from code import InteractiveConsole, InteractiveInterpreter, softspace |
31 from optparse import make_option | 31 from optparse import make_option |
32 __version__ = '0.4.8' | 32 __version__ = '0.5.0' |
33 | 33 |
34 class OptionParser(optparse.OptionParser): | 34 class OptionParser(optparse.OptionParser): |
35 def exit(self, status=0, msg=None): | 35 def exit(self, status=0, msg=None): |
36 self.values._exit = True | 36 self.values._exit = True |
37 if msg: | 37 if msg: |