[GRASS-SVN] r36166 - grass/trunk/lib/gis

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


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

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

Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2009-03-01 15:05:31 UTC (rev 36165)
+++ grass/trunk/lib/gis/parser.c	2009-03-01 15:05:51 UTC (rev 36166)
@@ -2239,7 +2239,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