[GRASS-SVN] r45065 - grass/branches/develbranch_6/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 17 12:05:12 EST 2011
Author: martinl
Date: 2011-01-17 09:05:12 -0800 (Mon, 17 Jan 2011)
New Revision: 45065
Modified:
grass/branches/develbranch_6/lib/gis/parser.c
Log:
parser: don't call G_usage() on error
(merge r45064 from trunk)
Modified: grass/branches/develbranch_6/lib/gis/parser.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/parser.c 2011-01-17 16:24:56 UTC (rev 45064)
+++ grass/branches/develbranch_6/lib/gis/parser.c 2011-01-17 17:05:12 UTC (rev 45065)
@@ -993,15 +993,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."),
+ pgm_name);
return -1;
}
if (check_overwrite())
return -1;
- return (0);
+ return 0;
}
More information about the grass-commit
mailing list