[GRASS-SVN] r44434 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 26 12:37:53 EST 2010


Author: martinl
Date: 2010-11-26 09:37:53 -0800 (Fri, 26 Nov 2010)
New Revision: 44434

Modified:
   grass/branches/develbranch_6/lib/gis/parser.c
Log:
call G_usage() when level is verbose
(merge r44433 from trunk)


Modified: grass/branches/develbranch_6/lib/gis/parser.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/parser.c	2010-11-26 17:34:46 UTC (rev 44433)
+++ grass/branches/develbranch_6/lib/gis/parser.c	2010-11-26 17:37:53 UTC (rev 44434)
@@ -857,7 +857,7 @@
 	}
     }
     else if (argc < 2 && isatty(0)) {
-	G_usage();
+      	G_usage();
 	return -1;
     }
     else if (argc >= 2) {
@@ -987,7 +987,7 @@
     error += check_required();
     
     if (error) {
-	if (G_verbose() > G_verbose_min())
+	if (G_verbose() > G_verbose_std())
 	    G_usage();
 	return -1;
     }
@@ -2430,7 +2430,7 @@
     while (opt != NULL) {
 	if (opt->required && opt->answer == NULL) {
 	    fprintf(stderr,
-		    _("\nERROR: Required parameter <%s> not set:\n    (%s).\n"),
+		    _("ERROR: Required parameter <%s> not set:\n\t(%s)\n"),
 		    opt->key, (opt->label ? opt->label : opt->description) );
 	    err++;
 	}



More information about the grass-commit mailing list