[GRASS-SVN] r62764 - grass/branches/releasebranch_7_0/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 17 02:27:29 PST 2014
Author: mmetz
Date: 2014-11-17 02:27:29 -0800 (Mon, 17 Nov 2014)
New Revision: 62764
Modified:
grass/branches/releasebranch_7_0/lib/gis/parser.c
Log:
libgis: chop options
Modified: grass/branches/releasebranch_7_0/lib/gis/parser.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/parser.c 2014-11-17 10:27:16 UTC (rev 62763)
+++ grass/branches/releasebranch_7_0/lib/gis/parser.c 2014-11-17 10:27:29 UTC (rev 62764)
@@ -352,6 +352,7 @@
i = 0;
while (tokens[i]) {
+ G_chop(tokens[i]);
cnt++;
i++;
}
@@ -378,6 +379,8 @@
if (!tokens[i + 1])
break;
+ G_chop(tokens[i]);
+
j = 0;
found = 0;
while (opt->opts[j]) {
@@ -420,7 +423,7 @@
/* If there are NO arguments, go interactive */
if (argc < 2 && (st->has_required || G__has_required_rule())
- && !st->no_interactive && isatty(0)) {
+ && !st->no_interactive && isatty(0)) {
module_gui_wx();
return -1;
}
More information about the grass-commit
mailing list