comparison cmd2.py @ 95:199a08e3ae72

ready ? with 0.3.7
author catherine@dellzilla
date Fri, 26 Sep 2008 13:03:25 -0400
parents 414a78c16ce9
children
comparison
equal deleted inserted replaced
94:414a78c16ce9 95:199a08e3ae72
22 As of 0.3.0, options should be specified as `optparse` options. See README.txt. 22 As of 0.3.0, options should be specified as `optparse` options. See README.txt.
23 flagReader.py options are still supported for backward compatibility 23 flagReader.py options are still supported for backward compatibility
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 from optparse import make_option 26 from optparse import make_option
27 __version__ = '0.3.7'
27 28
28 class OptionParser(optparse.OptionParser): 29 class OptionParser(optparse.OptionParser):
29 def exit(self, status=0, msg=None): 30 def exit(self, status=0, msg=None):
30 self.values._exit = True 31 self.values._exit = True
31 if msg: 32 if msg: