Hi,
On Jul 7, 2014 5:21 PM, <svn_grass@osgeo.org> wrote:
Author: hcho
Date: 2014-07-07 08:21:53 -0700 (Mon, 07 Jul 2014)
New Revision: 61169
Modified:
grass/trunk/raster/r.clump/clump.c
grass/trunk/raster/r.clump/local_proto.h
grass/trunk/raster/r.clump/main.c
Log:
r.clump: Add -p flag to print only the number of clumps in shell script style
...
Modified: grass/trunk/raster/r.clump/main.c
--- grass/trunk/raster/r.clump/main.c 2014-07-07 14:07:29 UTC (rev 61168)
+++ grass/trunk/raster/r.clump/main.c 2014-07-07 15:21:53 UTC (rev 61169)
...
@@ -66,48 +68,59 @@
flag_diag = G_define_flag();
flag_diag->key = 'd';
flag_diag->label = _("Clump also diagonal cells");
- flag_diag->description = _("Clumps are also traced along diagonal neighboring cells");
+ flag_diag->description = _("Clumps are also traced along diagonal neighboring cells");
+ flag_print = G_define_flag();
+ flag_print->key = 'p';
+ flag_print->label = _("Print only the number of clumps in shell script style");
...
should this flag better be called -g for consistency?
Markus
Markus, this is done in r61260.
···
On Sun, Jul 13, 2014 at 1:00 PM, Markus Neteler <neteler@osgeo.org> wrote:
Hi,
On Jul 7, 2014 5:21 PM, <svn_grass@osgeo.org> wrote:
Author: hcho
Date: 2014-07-07 08:21:53 -0700 (Mon, 07 Jul 2014)
New Revision: 61169
Modified:
grass/trunk/raster/r.clump/clump.c
grass/trunk/raster/r.clump/local_proto.h
grass/trunk/raster/r.clump/main.c
Log:
r.clump: Add -p flag to print only the number of clumps in shell script style
…
Modified: grass/trunk/raster/r.clump/main.c
— grass/trunk/raster/r.clump/main.c 2014-07-07 14:07:29 UTC (rev 61168)
+++ grass/trunk/raster/r.clump/main.c 2014-07-07 15:21:53 UTC (rev 61169)
…
@@ -66,48 +68,59 @@
flag_diag = G_define_flag();
flag_diag->key = ‘d’;
flag_diag->label = _(“Clump also diagonal cells”);
- flag_diag->description = _(“Clumps are also traced along diagonal neighboring cells”);
-
flag_diag->description = _(“Clumps are also traced along diagonal neighboring cells”);
-
flag_print = G_define_flag();
-
flag_print->key = ‘p’;
-
flag_print->label = _(“Print only the number of clumps in shell script style”);
…
should this flag better be called -g for consistency?
Markus
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev