[GRASS-SVN] r60945 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 24 07:38:52 PDT 2014
Author: hcho
Date: 2014-06-24 07:38:52 -0700 (Tue, 24 Jun 2014)
New Revision: 60945
Modified:
grass/trunk/lib/gis/parser.c
Log:
parser.c: \code, \verbatim cosmetics
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2014-06-24 14:35:57 UTC (rev 60944)
+++ grass/trunk/lib/gis/parser.c 2014-06-24 14:38:52 UTC (rev 60945)
@@ -6,60 +6,60 @@
* Parses the command line provided through argc and argv. Example:
* Assume the previous calls:
*
- * \code
- * opt1 = G_define_option() ;
- * opt1->key = "map",
- * opt1->type = TYPE_STRING,
- * opt1->required = YES,
- * opt1->checker = sub,
- * opt1->description= "Name of an existing raster map" ;
+ \code
+ opt1 = G_define_option() ;
+ opt1->key = "map",
+ opt1->type = TYPE_STRING,
+ opt1->required = YES,
+ opt1->checker = sub,
+ opt1->description= "Name of an existing raster map" ;
+
+ opt2 = G_define_option() ;
+ opt2->key = "color",
+ opt2->type = TYPE_STRING,
+ opt2->required = NO,
+ opt2->answer = "white",
+ opt2->options = "red,orange,blue,white,black",
+ opt2->description= "Color used to display the map" ;
+
+ opt3 = G_define_option() ;
+ opt3->key = "number",
+ opt3->type = TYPE_DOUBLE,
+ opt3->required = NO,
+ opt3->answer = "12345.67",
+ opt3->options = "0-99999",
+ opt3->description= "Number to test parser" ;
+ \endcode
*
- * opt2 = G_define_option() ;
- * opt2->key = "color",
- * opt2->type = TYPE_STRING,
- * opt2->required = NO,
- * opt2->answer = "white",
- * opt2->options = "red,orange,blue,white,black",
- * opt2->description= "Color used to display the map" ;
- *
- * opt3 = G_define_option() ;
- * opt3->key = "number",
- * opt3->type = TYPE_DOUBLE,
- * opt3->required = NO,
- * opt3->answer = "12345.67",
- * opt3->options = "0-99999",
- * opt3->description= "Number to test parser" ;
- * \endcode
- *
* G_parser() will respond to the following command lines as described:
*
- * \verbatim
- * command (No command line arguments)
- * \endverbatim
+ \verbatim
+ command (No command line arguments)
+ \endverbatim
* Parser enters interactive mode.
*
- * \verbatim
- * command map=map.name
- * \endverbatim
+ \verbatim
+ command map=map.name
+ \endverbatim
* Parser will accept this line. Map will be set to "map.name", the
* 'a' and 'b' flags will remain off and the num option will be set
* to the default of 5.
*
- * \verbatim
- * command -ab map=map.name num=9
- * command -a -b map=map.name num=9
- * command -ab map.name num=9
- * command map.name num=9 -ab
- * command num=9 -a map=map.name -b
- * \endverbatim
+ \verbatim
+ command -ab map=map.name num=9
+ command -a -b map=map.name num=9
+ command -ab map.name num=9
+ command map.name num=9 -ab
+ command num=9 -a map=map.name -b
+ \endverbatim
* These are all treated as acceptable and identical. Both flags are
* set to on, the map option is "map.name" and the num option is "9".
* Note that the "map=" may be omitted from the command line if it
* is part of the first option (flags do not count).
*
- * \verbatim
- * command num=12
- * \endverbatim
+ \verbatim
+ command num=12
+ \endverbatim
* This command line is in error in two ways. The user will be told
* that the "map" option is required and also that the number 12 is
* out of range. The acceptable range (or list) will be printed.
More information about the grass-commit
mailing list