changeset 190:51c15fe803a4

synch
author catherine@Elli.myhome.westell.com
date Thu, 12 Feb 2009 04:27:39 -0500
parents 06119abd352e
children 9d9e9ea88daf
files cmd2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: