diff cmd2.py @ 33:11d44bf343c7

rejoin arg after split
author catherine.devlin@gmail.com
date Mon, 19 May 2008 13:43:07 -0400
parents dd64c0e3dbe0
children
line wrap: on
line diff
--- a/cmd2.py	Mon May 19 10:08:23 2008 -0400
+++ b/cmd2.py	Mon May 19 13:43:07 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