[GRASS-SVN] r50680 - grass/branches/develbranch_6/vector/v.kernel
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 6 01:39:23 EST 2012
Author: hamish
Date: 2012-02-05 22:39:23 -0800 (Sun, 05 Feb 2012)
New Revision: 50680
Modified:
grass/branches/develbranch_6/vector/v.kernel/main.c
Log:
-v flag needs to remain for backwards compatibility
Modified: grass/branches/develbranch_6/vector/v.kernel/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.kernel/main.c 2012-02-06 05:47:43 UTC (rev 50679)
+++ grass/branches/develbranch_6/vector/v.kernel/main.c 2012-02-06 06:39:23 UTC (rev 50680)
@@ -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