[GRASS-SVN] r33502 - grass/trunk/general/g.mlist
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 23 03:41:52 EDT 2008
Author: neteler
Date: 2008-09-23 03:41:52 -0400 (Tue, 23 Sep 2008)
New Revision: 33502
Modified:
grass/trunk/general/g.mlist/main.c
Log:
add convenient predefined 'comma' as separator
Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c 2008-09-23 02:56:17 UTC (rev 33501)
+++ grass/trunk/general/g.mlist/main.c 2008-09-23 07:41:52 UTC (rev 33502)
@@ -103,7 +103,7 @@
opt.separator->multiple = NO;
opt.separator->answer = "newline";
opt.separator->description =
- _("One-character output separator, newline, space, or tab");
+ _("One-character output separator, newline, comma, space, or tab");
opt.mapset = G_define_option();
opt.mapset->key = "mapset";
@@ -158,6 +158,8 @@
if (strcmp(opt.separator->answer, "newline") == 0)
separator[0] = '\n';
+ else if (strcmp(opt.separator->answer, "comma") == 0)
+ separator[0] = ',';
else if (strcmp(opt.separator->answer, "space") == 0)
separator[0] = ' ';
else if (strcmp(opt.separator->answer, "tab") == 0)
More information about the grass-commit
mailing list