Browse Source

grass.py: --help: print header (version, short desc)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55186 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 years ago
parent
commit
0687b84b75
1 changed files with 5 additions and 2 deletions
  1. 5 2
      lib/init/grass.py

+ 5 - 2
lib/init/grass.py

@@ -148,7 +148,9 @@ def Popen(cmd, **kwargs):
 def gfile(*args):
     return os.path.join(gisbase, *args)
 
-help_text = r"""
+help_text = r"""GRASS GIS %s
+Geographic Resources Analysis Support System (GRASS GIS).
+
 %s:
   $CMD_NAME [-h | -help | --help] [-v | --version] [-c | -c geofile | -c EPSG:code]
           [-text | -gui] [--config param]
@@ -180,7 +182,8 @@ help_text = r"""
   GRASS_ADDON_BASE               %s
   GRASS_BATCH_JOB                %s
   GRASS_PYTHON                   %s
-""" % (_("Usage"),
+""" % (grass_version,
+       _("Usage"),
        _("Flags"),
        _("print this help message"),
        _("show version information and exit"),