[GRASS-SVN] r54563 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 7 13:03:17 PST 2013
Author: martinl
Date: 2013-01-07 13:03:16 -0800 (Mon, 07 Jan 2013)
New Revision: 54563
Modified:
grass/trunk/lib/gis/parser_standard_options.c
Log:
libgis: turn vector layers to be optional parameter by default
Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c 2013-01-07 19:27:11 UTC (rev 54562)
+++ grass/trunk/lib/gis/parser_standard_options.c 2013-01-07 21:03:16 UTC (rev 54563)
@@ -452,7 +452,7 @@
case G_OPT_V_FIELD:
Opt->key = "layer";
Opt->type = TYPE_STRING;
- Opt->required = YES;
+ Opt->required = NO;
Opt->answer = "1";
Opt->label = _("Layer number or name");
Opt->description =
@@ -464,7 +464,7 @@
case G_OPT_V_FIELD_ALL:
Opt->key = "layer";
Opt->type = TYPE_STRING;
- Opt->required = YES;
+ Opt->required = NO;
Opt->answer = "-1";
Opt->label = _("Layer number or name ('-1' for all layers)");
Opt->description =
More information about the grass-commit
mailing list