[GRASS-SVN] r46111 - grass/branches/releasebranch_6_4/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 26 11:37:32 EDT 2011
Author: martinl
Date: 2011-04-26 08:37:32 -0700 (Tue, 26 Apr 2011)
New Revision: 46111
Modified:
grass/branches/releasebranch_6_4/lib/python/core.py
Log:
glynn: Improve handling of flags= argument
(merge r46109 from trunk)
Modified: grass/branches/releasebranch_6_4/lib/python/core.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/core.py 2011-04-26 15:35:50 UTC (rev 46110)
+++ grass/branches/releasebranch_6_4/lib/python/core.py 2011-04-26 15:37:32 UTC (rev 46111)
@@ -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