[GRASS-SVN] r62807 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 18 12:05:56 PST 2014
Author: mmetz
Date: 2014-11-18 12:05:56 -0800 (Tue, 18 Nov 2014)
New Revision: 62807
Modified:
grass/trunk/lib/gis/parser_html.c
Log:
libgis: code cosmetic, sync G__usage_html() to G_usage()
Modified: grass/trunk/lib/gis/parser_html.c
===================================================================
--- grass/trunk/lib/gis/parser_html.c 2014-11-18 17:57:35 UTC (rev 62806)
+++ grass/trunk/lib/gis/parser_html.c 2014-11-18 20:05:56 UTC (rev 62807)
@@ -78,8 +78,6 @@
fprintf(stdout, "<div id=\"synopsis\"><b>%s</b>", st->pgm_name);
-
-
/* print short version first */
if (st->n_flags) {
flag = &st->first_flag;
@@ -137,13 +135,12 @@
fprintf(stdout, "\n</div>\n");
-
/* now long version */
fprintf(stdout, "\n");
fprintf(stdout, "<div id=\"flags\">\n");
fprintf(stdout, "<h3>%s:</h3>\n", _("Flags"));
fprintf(stdout, "<dl>\n");
- if (st->n_flags || new_prompt) {
+ if (st->n_flags) {
flag = &st->first_flag;
while (st->n_flags && flag != NULL) {
fprintf(stdout, "<dt><b>-%c</b></dt>\n", flag->key);
@@ -163,12 +160,12 @@
flag = flag->next_flag;
fprintf(stdout, "\n");
}
- if (new_prompt) {
- fprintf(stdout, "<dt><b>--overwrite</b></dt>\n");
- fprintf(stdout, "<dd>%s</dd>\n",
- _("Allow output files to overwrite existing files"));
- }
}
+ if (new_prompt) {
+ fprintf(stdout, "<dt><b>--overwrite</b></dt>\n");
+ fprintf(stdout, "<dd>%s</dd>\n",
+ _("Allow output files to overwrite existing files"));
+ }
/* these flags are always available */
fprintf(stdout, "<dt><b>--help</b></dt>\n");
fprintf(stdout, "<dd>%s</dd>\n", _("Print usage summary"));
More information about the grass-commit
mailing list