Mercurial > python-cmd2
comparison cmd2.py @ 124:fad4dde06be8 0.4.2
get 0.4.1 to assembla, darn it
author | catherine@dellzilla |
---|---|
date | Wed, 29 Oct 2008 11:04:51 -0400 |
parents | e62aa2f58b7b |
children | 197a312f2656 e3ea21450237 |
comparison
equal
deleted
inserted
replaced
123:2402bd2f8af4 | 124:fad4dde06be8 |
---|---|
23 As of 0.3.0, options should be specified as `optparse` options. See README.txt. | 23 As of 0.3.0, options should be specified as `optparse` options. See README.txt. |
24 flagReader.py options are still supported for backward compatibility | 24 flagReader.py options are still supported for backward compatibility |
25 """ | 25 """ |
26 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest, unittest | 26 import cmd, re, os, sys, optparse, subprocess, tempfile, pyparsing, doctest, unittest |
27 from optparse import make_option | 27 from optparse import make_option |
28 __version__ = '0.4' | 28 __version__ = '0.4.1' |
29 | 29 |
30 class OptionParser(optparse.OptionParser): | 30 class OptionParser(optparse.OptionParser): |
31 def exit(self, status=0, msg=None): | 31 def exit(self, status=0, msg=None): |
32 self.values._exit = True | 32 self.values._exit = True |
33 if msg: | 33 if msg: |