[mapserver-commits] r11421 - trunk/msautotest/pymod
svn at osgeo.org
svn at osgeo.org
Thu Mar 31 08:23:06 EDT 2011
Author: tbonfort
Date: 2011-03-31 05:23:06 -0700 (Thu, 31 Mar 2011)
New Revision: 11421
Modified:
trunk/msautotest/pymod/mstestlib.py
Log:
arg parser should skip to next arg if current one expects a value
Modified: trunk/msautotest/pymod/mstestlib.py
===================================================================
--- trunk/msautotest/pymod/mstestlib.py 2011-03-31 12:22:19 UTC (rev 11420)
+++ trunk/msautotest/pymod/mstestlib.py 2011-03-31 12:23:06 UTC (rev 11421)
@@ -338,19 +338,24 @@
shp2img = 'shp2img'
renderer = None
verbose = 0
-
+ skiparg = False
###########################################################################
# Process arguments.
for i in range(len(argv)):
+ if skiparg:
+ skiparg = False
+ continue
if argv[i] == '-shp2img':
shp2img = argv[i+1]
+ skiparg = True
elif argv[i] == '-keep':
keep_pass = 1
elif argv[i] == '-valgrind':
valgrind = 1
elif argv[i] == '-renderer':
renderer = argv[i+1]
+ skiparg = True
elif argv[i] == '-v':
verbose = 1
elif argv[i][-4:] == '.map':
More information about the mapserver-commits
mailing list