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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 29 18:10:38 PDT 2016


Author: wenzeslaus
Date: 2016-06-29 18:10:38 -0700 (Wed, 29 Jun 2016)
New Revision: 68797

Modified:
   grass/trunk/lib/init/grass.py
Log:
init: advise user about --help and -c

make messages shorter
follows r68795, see #2683


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2016-06-30 01:02:29 UTC (rev 68796)
+++ grass/trunk/lib/init/grass.py	2016-06-30 01:10:38 UTC (rev 68797)
@@ -1826,12 +1826,18 @@
     if not os.access(gisrc, os.F_OK):
         if grass_gui == 'text' and not params.mapset:
             fatal(_("Unable to start GRASS GIS. You have the choice to:\n"
-                    " - Launch the GRASS GIS interface with"
-                    " the '-gui' switch (`{cmd_name} -gui`)\n"
-                    " - Launch GRASS GIS directly with path to "
-                    "the location/mapset as an argument"
-                    " (`{cmd_name} /path/to/location/mapset`)\n"
+                    " - Launch the graphical user interface with"
+                    " the '-gui' switch\n"
+                    "     {cmd_name} -gui\n"
+                    " - Launch with path to "
+                    "the location/mapset as an argument\n"
+                    "     {cmd_name} /path/to/location/mapset`\n"
+                    " - Create a location with '-c' and launch in its"
+                    " PERMENENT mapset\n"
+                    "     {cmd_name} -c EPSG:number /path/to/location\n"
                     " - Create manually the GISRC file ({gisrcrc})\n"
+                    " - Use '--help' for further options\n"
+                    "     {cmd_name} --help\n"
                     "See also: https://grass.osgeo.org/{cmd_name}/manuals/helptext.html").format(
                         cmd_name=cmd_name, gisrcrc=gisrcrc))
         create_initial_gisrc(gisrc)



More information about the grass-commit mailing list