[GRASS-SVN] r46112 - grass/branches/develbranch_6/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 26 11:38:51 EDT 2011
Author: martinl
Date: 2011-04-26 08:38:51 -0700 (Tue, 26 Apr 2011)
New Revision: 46112
Modified:
grass/branches/develbranch_6/lib/python/core.py
Log:
glynn: Improve handling of flags= argument
(merge r46109 from trunk)
Modified: grass/branches/develbranch_6/lib/python/core.py
===================================================================
--- grass/branches/develbranch_6/lib/python/core.py 2011-04-26 15:37:32 UTC (rev 46111)
+++ grass/branches/develbranch_6/lib/python/core.py 2011-04-26 15:38:51 UTC (rev 46112)
@@ -120,6 +120,8 @@
if verbose:
args.append("--v")
if flags:
+ if '-' in flags:
+ raise ScriptError("'-' is not a valid flag")
args.append("-%s" % flags)
for opt, val in options.iteritems():
if val != None:
More information about the grass-commit
mailing list