[GRASS-SVN] r73101 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 14 19:56:06 PDT 2018


Author: wenzeslaus
Date: 2018-08-14 19:56:06 -0700 (Tue, 14 Aug 2018)
New Revision: 73101

Modified:
   grass/trunk/lib/init/grass.py
Log:
init: do not show non-standard help options

We are now not showing -help (legacy) and --h (module-like) in the same way
we were not showing help (legacy from modules and subcommand-like).

They are still supported for convenience, but not advertised.

This also simplifies the help text a little bit. (Some tools
do not show --help etc. in the help text at all.


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2018-08-15 02:48:03 UTC (rev 73100)
+++ grass/trunk/lib/init/grass.py	2018-08-15 02:56:06 UTC (rev 73101)
@@ -287,7 +287,7 @@
 Geographic Resources Analysis Support System (GRASS GIS).
 
 {usage}:
-  $CMD_NAME [-h | -help | --help | --h] [-v | --version]
+  $CMD_NAME [-h | --help] [-v | --version]
           [-c | -c geofile | -c EPSG:code[:datum_trans] | -c XY]
           [-e] [-f] [--text | --gtext | --gui] [--config param]
           [[[GISDBASE/]LOCATION_NAME/]MAPSET]
@@ -295,7 +295,7 @@
   $CMD_NAME --tmp-location [geofile | EPSG | XY] --exec EXECUTABLE [EPARAM]...
 
 {flags}:
-  -h or -help or --help or --h   {help_flag}
+  -h or --help                   {help_flag}
   -v or --version                {version_flag}
   -c                             {create}
   -e                             {exit_after}



More information about the grass-commit mailing list