summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorCatherine Devlin <catherine.devlin@gmail.com>2011-02-02 05:26:37 -0800
committerCatherine Devlin <catherine.devlin@gmail.com>2011-02-02 05:26:37 -0800
commit8af15d852a0096f2691da9432ba0952c131e7556 (patch)
tree91fdff5ab47e090c18b4ed27ff6be203df5b264b /cmd2.py
parentf755708decd829819a93ebc71de7d15e530b6511 (diff)
downloadcmd2-git-8af15d852a0096f2691da9432ba0952c131e7556.tar.gz
raise a specific error overriding optparse .error
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 5dee1fda..bf98652d 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -69,7 +69,7 @@ class OptionParser(optparse.OptionParser):
If you override this in a subclass, it should not return -- it
should either exit or raise an exception.
"""
- raise
+ raise optparse.OptParseError(msg)
def remaining_args(oldArgs, newArgList):
'''