Parcourir la source

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.


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73101 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras il y a 6 ans
Parent
commit
d46ade3e30
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lib/init/grass.py

+ 2 - 2
lib/init/grass.py

@@ -287,7 +287,7 @@ help_text = r"""GRASS GIS $VERSION_NUMBER
 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 @@ Geographic Resources Analysis Support System (GRASS GIS).
   $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}