Hi,
should we patch lib/gis/parser.c in 6.2-cvs to silently ignore --quiet and
--verbose command line switches? Then scripts written for 6.3+ could run on
6.2 with fewer modifications.
patch attached.
Hamish
--- parser.c_6.2.2 2007-10-21 11:22:12.000000000 +1300
+++ parser.c 2007-10-21 11:23:31.000000000 +1300
@@ -750,6 +750,14 @@
overwrite = 1;
}
+ /* Verbose option for forward compatibility with GRASS 6.3+ */
+ else if ( strcmp(ptr,"--v") == 0 || strcmp(ptr,"--verbose") == 0 )
+ G_debug(1, "Verbose mode requested but not used in GRASS 6.2");
+
+ /* Quiet option for forward compatibility with GRASS 6.3+ */
+ else if ( strcmp(ptr,"--q") == 0 || strcmp(ptr,"--quiet") == 0 )
+ G_debug(1, "Quiet mode requested but not used in GRASS 6.2");
+
/* Force gui to come up */
else if ( strcmp(ptr,"--ui") == 0 )
{
_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev