Browse Source

respect opt->label (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36166 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 years ago
parent
commit
c7af3eb6c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gis/parser.c

+ 1 - 1
lib/gis/parser.c

@@ -2239,7 +2239,7 @@ static int check_required(void)
 	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;