[GRASS-SVN] r62763 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 17 02:27:17 PST 2014
Author: mmetz
Date: 2014-11-17 02:27:16 -0800 (Mon, 17 Nov 2014)
New Revision: 62763
Modified:
grass/trunk/lib/gis/parser.c
Log:
libgis: chop options
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2014-11-17 08:48:04 UTC (rev 62762)
+++ grass/trunk/lib/gis/parser.c 2014-11-17 10:27:16 UTC (rev 62763)
@@ -356,6 +356,7 @@
i = 0;
while (tokens[i]) {
+ G_chop(tokens[i]);
cnt++;
i++;
}
@@ -382,6 +383,8 @@
if (!tokens[i + 1])
break;
+ G_chop(tokens[i]);
+
j = 0;
found = 0;
while (opt->opts[j]) {
@@ -579,7 +582,7 @@
/* Make sure all required options are set */
if (!st->suppress_required)
check_required();
-
+
G__check_option_rules();
if (st->n_errors > 0) {
More information about the grass-commit
mailing list