소스 검색

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 년 전
부모
커밋
c7af3eb6c9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;