Change to only split once so that cargs='--foo=1 --bar=2' works.

fixes #144
This commit is contained in:
Bob Lantz
2013-06-03 15:37:56 -07:00
parent e3d07bc1a0
commit 5fae96eb6e
+1 -1
View File
@@ -423,7 +423,7 @@ def splitArgs( argstr ):
args = [ makeNumeric( s ) for s in params if '=' not in s ]
kwargs = {}
for s in [ p for p in params if '=' in p ]:
key, val = s.split( '=' )
key, val = s.split( '=', 1 )
kwargs[ key ] = makeNumeric( val )
return fn, args, kwargs