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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 17 11:24:56 EST 2011


Author: martinl
Date: 2011-01-17 08:24:56 -0800 (Mon, 17 Jan 2011)
New Revision: 45064

Modified:
   grass/trunk/lib/gis/parser.c
Log:
parser: don't call G_usage() on error


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2011-01-17 16:18:16 UTC (rev 45063)
+++ grass/trunk/lib/gis/parser.c	2011-01-17 16:24:56 UTC (rev 45064)
@@ -565,15 +565,15 @@
 	error += check_required();
     
     if (error) {
-	if (G_verbose() > G_verbose_std())
-	    G_usage();
+	G_important_message(_("Error in usage. Call `%s --help` to get usage info."),
+			    state.pgm_name);
 	return -1;
     }
 
     if (check_overwrite())
 	return -1;
 
-    return (0);
+    return 0;
 }
 
 /*!



More information about the grass-commit mailing list