[GRASS-SVN] r62784 - grass/branches/releasebranch_7_0/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 17 16:15:23 PST 2014


Author: martinl
Date: 2014-11-17 16:15:23 -0800 (Mon, 17 Nov 2014)
New Revision: 62784

Modified:
   grass/branches/releasebranch_7_0/lib/gis/parser_html.c
Log:
libgis: sync parser_html.c with trunk (including r62776)


Modified: grass/branches/releasebranch_7_0/lib/gis/parser_html.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/gis/parser_html.c	2014-11-17 23:59:06 UTC (rev 62783)
+++ grass/branches/releasebranch_7_0/lib/gis/parser_html.c	2014-11-18 00:15:23 UTC (rev 62784)
@@ -74,7 +74,7 @@
     }
     fprintf(stdout, "<h2>%s</h2>\n", _("SYNOPSIS"));
     fprintf(stdout, "<div id=\"name\"><b>%s</b><br></div>\n", st->pgm_name);
-    fprintf(stdout, "<b>%s help</b><br>\n", st->pgm_name);
+    fprintf(stdout, "<b>%s --help</b><br>\n", st->pgm_name);
 
     fprintf(stdout, "<div id=\"synopsis\"><b>%s</b>", st->pgm_name);
 
@@ -133,17 +133,18 @@
     fprintf(stdout, " [--<b>help</b>] ");
     fprintf(stdout, " [--<b>verbose</b>] ");
     fprintf(stdout, " [--<b>quiet</b>] ");
-
+    fprintf(stdout, " [--<b>ui</b>] ");
+    
     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) {
 	flag = &st->first_flag;
-	fprintf(stdout, "<h3>%s:</h3>\n", _("Flags"));
-	fprintf(stdout, "<dl>\n");
 	while (st->n_flags && flag != NULL) {
 	    fprintf(stdout, "<dt><b>-%c</b></dt>\n", flag->key);
 
@@ -167,18 +168,21 @@
 	    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"));
 
-	fprintf(stdout, "<dt><b>--help</b></dt>\n");
-	fprintf(stdout, "<dd>%s</dd>\n", _("Print usage summary"));
+    fprintf(stdout, "<dt><b>--verbose</b></dt>\n");
+    fprintf(stdout, "<dd>%s</dd>\n", _("Verbose module output"));
 
-	fprintf(stdout, "<dt><b>--verbose</b></dt>\n");
-	fprintf(stdout, "<dd>%s</dd>\n", _("Verbose module output"));
+    fprintf(stdout, "<dt><b>--quiet</b></dt>\n");
+    fprintf(stdout, "<dd>%s</dd>\n", _("Quiet module output"));
 
-	fprintf(stdout, "<dt><b>--quiet</b></dt>\n");
-	fprintf(stdout, "<dd>%s</dd>\n", _("Quiet module output"));
+    fprintf(stdout, "<dt><b>--ui</b></dt>\n");
+    fprintf(stdout, "<dd>%s</dd>\n", _("Force launching GUI dialog"));
 
-	fprintf(stdout, "</dl>\n");
-    }
+    fprintf(stdout, "</dl>\n");
     fprintf(stdout, "</div>\n");
 
     fprintf(stdout, "\n");



More information about the grass-commit mailing list