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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 27 09:53:16 EDT 2011


Author: neteler
Date: 2011-09-27 06:53:15 -0700 (Tue, 27 Sep 2011)
New Revision: 48498

Modified:
   grass/trunk/lib/init/grass.py
Log:
silently accept --flags, too

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2011-09-27 13:47:46 UTC (rev 48497)
+++ grass/trunk/lib/init/grass.py	2011-09-27 13:53:15 UTC (rev 48498)
@@ -935,13 +935,13 @@
 	    help_message()
 	    sys.exit()
 	# Check if the -text flag was given
-	elif i == "-text":
+	elif i in ["-text", "--text"]:
 	    grass_gui = 'text'
 	# Check if the -gui flag was given
-	elif i == "-gui":
+	elif i in ["-gui", "--gui"]:
 	    grass_gui = default_gui
 	# Check if the -wxpython flag was given
-	elif i in ["-wxpython", "-wx"]:
+	elif i in ["-wxpython", "-wx", "--wxpython", "--wx"]:
 	    grass_gui = 'wxpython'
 	# Check if the user wants to create a new mapset
 	elif i == "-c":



More information about the grass-commit mailing list