Mercurial > python-cmd2
diff cmd2.py @ 283:bff1f19275e7
unknown
author | catherine@DellZilla |
---|---|
date | Fri, 09 Oct 2009 09:10:17 -0400 |
parents | 7c6eb0fc75ef |
children | e02b85e6aee1 |
line wrap: on
line diff
--- a/cmd2.py Wed Oct 07 14:24:14 2009 -0400 +++ b/cmd2.py Fri Oct 09 09:10:17 2009 -0400 @@ -67,7 +67,9 @@ return getattr(obj, attr) except AttributeError: return None - + +optparse.Values.get = _attr_get_ + def options(option_list): def option_setup(func): optionParser = OptionParser() @@ -78,7 +80,6 @@ def newFunc(instance, arg): try: opts, newArgList = optionParser.parse_args(arg.split()) # doesn't understand quoted strings shouldn't be dissected! - opts.get = _attr_get_ newArgs = remainingArgs(arg, newArgList) # should it permit flags after args? except (optparse.OptionValueError, optparse.BadOptionError, optparse.OptionError, optparse.AmbiguousOptionError,