[GRASS-SVN] r49481 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 1 23:34:58 EST 2011
Author: glynn
Date: 2011-12-01 20:34:57 -0800 (Thu, 01 Dec 2011)
New Revision: 49481
Modified:
grass/trunk/lib/gis/parser.c
Log:
Don't silently ignore invalid arguments, raise an error
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2011-12-02 04:05:28 UTC (rev 49480)
+++ grass/trunk/lib/gis/parser.c 2011-12-02 04:34:57 UTC (rev 49481)
@@ -525,7 +525,7 @@
}
/* If we see the non valid argument (no "=", just argument) */
- else if (contains(ptr, '=') == 0) {
+ else {
G_asprintf(&err, _("Sorry <%s> is not a valid option"), ptr);
append_error(err);
}
More information about the grass-commit
mailing list