[GRASS-SVN] r44433 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 26 12:34:46 EST 2010
Author: martinl
Date: 2010-11-26 09:34:46 -0800 (Fri, 26 Nov 2010)
New Revision: 44433
Modified:
grass/trunk/lib/gis/parser.c
Log:
call G_usage() when level is verbose
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2010-11-26 14:15:35 UTC (rev 44432)
+++ grass/trunk/lib/gis/parser.c 2010-11-26 17:34:46 UTC (rev 44433)
@@ -421,7 +421,7 @@
return -1;
}
else if (argc < 2 && st->has_required && isatty(0)) {
- G_usage();
+ G_usage();
return -1;
}
else if (argc >= 2) {
@@ -559,7 +559,7 @@
error += check_required();
if (error) {
- if (G_verbose() > G_verbose_min())
+ if (G_verbose() > G_verbose_std())
G_usage();
return -1;
}
@@ -1140,7 +1140,7 @@
while (opt) {
if (opt->required && !opt->answer) {
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