[GRASS-dev] Re: [GRASS-SVN] r49204 - grass/trunk/vector/v.info
Martin Landa
landa.martin at gmail.com
Mon Nov 14 03:40:59 EST 2011
shrug, `-g` is mainly used for shell script output, I think it would
be better update `r.info` and `v.info` to follow this logic, g.region
is an exception. You are going to the opposite direction!
2011/11/14 <svn_grass at osgeo.org>:
> Author: hamish
> Date: 2011-11-13 22:49:25 -0800 (Sun, 13 Nov 2011)
> New Revision: 49204
>
> Modified:
> grass/trunk/vector/v.info/parse.c
> grass/trunk/vector/v.info/v.info.html
> Log:
> swap (ie restore) flags: -g is used throughout for map region info, same usage as g.region and r.info
>
> Modified: grass/trunk/vector/v.info/parse.c
> ===================================================================
> --- grass/trunk/vector/v.info/parse.c 2011-11-13 23:58:35 UTC (rev 49203)
> +++ grass/trunk/vector/v.info/parse.c 2011-11-14 06:49:25 UTC (rev 49204)
> @@ -30,19 +30,19 @@
> _("Print types/names of table columns for specified layer instead of info and exit");
> col_flag->guisection = _("Print");
>
> + region_flag = G_define_flag();
> + region_flag->key = 'g';
> + region_flag->description = _("Print region info in shell script style");
> + region_flag->guisection = _("Print");
> +
> shell_flag = G_define_flag();
> - shell_flag->key = 'g';
> - shell_flag->description = _("Print basic info in shell script style");
> + shell_flag->key = 'e';
> + shell_flag->description = _("Print extended metadata info in shell script style");
> shell_flag->guisection = _("Print");
>
> - region_flag = G_define_flag();
> - region_flag->key = 'e';
> - region_flag->description = _("Print also region info in shell script style");
> - region_flag->guisection = _("Print");
> -
> topo_flag = G_define_flag();
> topo_flag->key = 't';
> - topo_flag->description = _("Print also topology info in shell script style");
> + topo_flag->description = _("Print topology info in shell script style");
> topo_flag->guisection = _("Print");
>
> if (G_parser(argc, argv))
>
> Modified: grass/trunk/vector/v.info/v.info.html
> ===================================================================
> --- grass/trunk/vector/v.info/v.info.html 2011-11-13 23:58:35 UTC (rev 49203)
> +++ grass/trunk/vector/v.info/v.info.html 2011-11-14 06:49:25 UTC (rev 49204)
> @@ -116,7 +116,7 @@
> </pre></div>
>
> <div class="code"><pre>
> -v.info -e map=geology
> +v.info -g map=geology
>
> north=318117.43741634
> south=10875.82723209
>
> _______________________________________________
> grass-commit mailing list
> grass-commit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-commit
>
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
More information about the grass-dev
mailing list