[GRASS-SVN] r36165 - grass/branches/releasebranch_6_4/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 1 10:05:31 EST 2009


Author: hamish
Date: 2009-03-01 10:05:31 -0500 (Sun, 01 Mar 2009)
New Revision: 36165

Modified:
   grass/branches/releasebranch_6_4/lib/gis/parser.c
Log:
respect opt->label (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/lib/gis/parser.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/gis/parser.c	2009-03-01 14:59:05 UTC (rev 36164)
+++ grass/branches/releasebranch_6_4/lib/gis/parser.c	2009-03-01 15:05:31 UTC (rev 36165)
@@ -2406,7 +2406,7 @@
 	if (opt->required && opt->answer == NULL) {
 	    fprintf(stderr,
 		    _("\nERROR: Required parameter <%s> not set:\n    (%s).\n"),
-		    opt->key, opt->description);
+		    opt->key, (opt->label ? opt->label : opt->description) );
 	    err++;
 	}
 	opt = opt->next_opt;



More information about the grass-commit mailing list