diff options
| author | Catherine Devlin <catherine.devlin@gmail.com> | 2011-02-02 05:26:37 -0800 |
|---|---|---|
| committer | Catherine Devlin <catherine.devlin@gmail.com> | 2011-02-02 05:26:37 -0800 |
| commit | 8af15d852a0096f2691da9432ba0952c131e7556 (patch) | |
| tree | 91fdff5ab47e090c18b4ed27ff6be203df5b264b /cmd2.py | |
| parent | f755708decd829819a93ebc71de7d15e530b6511 (diff) | |
| download | cmd2-git-8af15d852a0096f2691da9432ba0952c131e7556.tar.gz | |
raise a specific error overriding optparse .error
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): ''' |
