# HG changeset patch # User catherine@DellZilla # Date 1255093817 14400 # Node ID bff1f19275e7852bdfb9ca5a2d9d3ab052adc9fb # Parent 7c6eb0fc75ef93d2615b168b89387b5c49eee0c3 unknown diff -r 7c6eb0fc75ef -r bff1f19275e7 cmd2.py --- 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,