Browse Source

rename --rest-description to --rst-description (backport https://trac.osgeo.org/grass/changeset/63780)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63818 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 10 years ago
parent
commit
907528569d
2 changed files with 13 additions and 9 deletions
  1. 8 4
      general/g.parser/g.parser.html
  2. 5 5
      lib/gis/parser.c

+ 8 - 4
general/g.parser/g.parser.html

@@ -197,15 +197,19 @@ generates a Web Processing Service process description. Example:
 v.in.db --wps-process-description
 </pre></div>
 
-<h2>reStructuredText (REST)</h2>
+<h2>reStructuredText</h2>
 
-The flag <b>--rest-description</b> added to a GRASS command
-generates a related help page template in reStructuredText. Example:
+The flag <b>--rst-description</b> added to a GRASS command
+generates module interface description in reStructuredText, a lightweight
+markup language. Example:
 
 <div class="code"><pre>
-v.in.db --rest-description
+v.in.db --rst-description
 </pre></div>
 
+reStructuredText is sometimes abbreviated as reST, ReST, or RST.
+The commonly used file extension is <tt>.rst</tt>.
+Don't be confused with Representational State Transfer (REST) technology.
 
 <h2>TRANSLATION</h2>
 

+ 5 - 5
lib/gis/parser.c

@@ -469,13 +469,13 @@ int G_parser(int argc, char **argv)
 	    G__usage_html();
 	    exit(EXIT_SUCCESS);
 	}
-	
-	/* If first arg is "--rest-description" then print out
-        * a ReST description of the task */
-	if (strcmp(argv[1], "--rest-description") == 0) {
+
+	/* If first arg is "--rst-description" then print out
+	 * a reStructuredText description of the task */
+	if (strcmp(argv[1], "--rst-description") == 0) {
 	    G__usage_rest();
 	    exit(EXIT_SUCCESS);
-	}	
+	}
 
 	/* If first arg is "--wps-process-description" then print out
 	 * the wps process description of the task */