changeset 36:f472921d6189

fixing split arg, AND cleaning up accidental merge mess
author catherine@localhost
date Mon, 19 May 2008 13:56:00 -0400
parents d72627da96de (current diff) e72eb9137a87 (diff)
children a974e2f44cbe
files cmd2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Mon May 19 10:19:29 2008 -0400
+++ b/cmd2.py	Mon May 19 13:56:00 2008 -0400
@@ -52,7 +52,7 @@
                 print e
                 optionParser.print_help()
                 return 
-            result = func(instance, arg, opts)                            
+            result = func(instance, ' '.join(arg), opts)                            
             return result
         newFunc.__doc__ = '%s\n%s' % (func.__doc__, optionParser.format_help())
         return newFunc