[GRASS-dev] [GRASS-SVN] r61169 - grass/trunk/raster/r.clump

Markus Neteler neteler at osgeo.org
Sun Jul 13 10:00:17 PDT 2014


Hi,

On Jul 7, 2014 5:21 PM, <svn_grass at 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


More information about the grass-dev mailing list