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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 24 10:10:38 PST 2013


Author: martinl
Date: 2013-02-24 10:10:37 -0800 (Sun, 24 Feb 2013)
New Revision: 55186

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: --help: print header (version, short desc)


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2013-02-24 16:24:55 UTC (rev 55185)
+++ grass/trunk/lib/init/grass.py	2013-02-24 18:10:37 UTC (rev 55186)
@@ -148,7 +148,9 @@
 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 @@
   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"),



More information about the grass-commit mailing list