# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1234430859 18000 # Node ID 51c15fe803a4e239619197039cb1544b5a53af40 # Parent 06119abd352e3e190ee55dd9b5a2215c50e69dbd synch diff -r 06119abd352e -r 51c15fe803a4 cmd2.py --- a/cmd2.py Fri Jan 30 05:53:12 2009 -0500 +++ b/cmd2.py Thu Feb 12 04:27:39 2009 -0500 @@ -60,8 +60,8 @@ optionParser.set_usage("%s [options] arg" % func.__name__.strip('do_')) def newFunc(instance, arg): try: - opts, newArgList = optionParser.parse_args(arg.split()) - newArgs = remainingArgs(arg, newArgList) + opts, newArgList = optionParser.parse_args(arg.split()) # doesn't understand quoted strings shouldn't be dissected! + newArgs = remainingArgs(arg, newArgList) # should it permit flags after args? except (optparse.OptionValueError, optparse.BadOptionError, optparse.OptionError, optparse.AmbiguousOptionError, optparse.OptionConflictError), e: