[GRASS-SVN] r50681 -
grass/branches/releasebranch_6_4/vector/v.kernel
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 6 01:41:18 EST 2012
Author: hamish
Date: 2012-02-05 22:41:18 -0800 (Sun, 05 Feb 2012)
New Revision: 50681
Modified:
grass/branches/releasebranch_6_4/vector/v.kernel/main.c
Log:
-v flag needs to remain for backwards compatibility (merge from devbr6)
Modified: grass/branches/releasebranch_6_4/vector/v.kernel/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.kernel/main.c 2012-02-06 06:39:23 UTC (rev 50680)
+++ grass/branches/releasebranch_6_4/vector/v.kernel/main.c 2012-02-06 06:41:18 UTC (rev 50681)
@@ -75,7 +75,7 @@
struct Option *in_opt, *net_opt, *out_opt;
struct Option *stddev_opt, *dsize_opt, *segmax_opt, *netmax_opt,
*multip_opt, *node_opt, *kernel_opt;
- struct Flag *flag_o, *flag_q, *flag_normalize, *flag_multiply;
+ struct Flag *flag_o, *flag_q, *flag_normalize, *flag_multiply, *flag_v;
char *mapset;
struct Map_info In, Net, Out;
@@ -196,9 +196,19 @@
flag_multiply->description =
_("In network mode, multiply the result by number of input points.");
+ flag_v = G_define_flag();
+ flag_v->key = 'v';
+ flag_v->description =
+ _("Verbose module output (retained for backwards compatibility)");
+
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
+
+ /* remove for grass7 */
+ if (flag_v->answer)
+ G_set_verbose(G_verbose_max());
+
/*read options */
sigma = atof(stddev_opt->answer);
dsize = atof(dsize_opt->answer);
More information about the grass-commit
mailing list