Mercurial > python-cmd2
changeset 420:b6beae2a2f46
raise a specific error overriding optparse .error
author | catherine.devlin@gmail.com |
---|---|
date | Wed, 02 Feb 2011 05:26:37 -0800 |
parents | fd8a2da973cb |
children | fc63f0aad022 |
files | cmd2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Wed Feb 02 08:15:21 2011 -0500 +++ b/cmd2.py Wed Feb 02 05:26:37 2011 -0800 @@ -69,7 +69,7 @@ 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): '''