[GRASS-SVN] r48496 - grass/branches/releasebranch_6_4/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 27 09:47:25 EDT 2011


Author: neteler
Date: 2011-09-27 06:47:25 -0700 (Tue, 27 Sep 2011)
New Revision: 48496

Modified:
   grass/branches/releasebranch_6_4/lib/init/init.sh
Log:
silently accept --flags, too

Modified: grass/branches/releasebranch_6_4/lib/init/init.sh
===================================================================
--- grass/branches/releasebranch_6_4/lib/init/init.sh	2011-09-27 11:32:34 UTC (rev 48495)
+++ grass/branches/releasebranch_6_4/lib/init/init.sh	2011-09-27 13:47:25 UTC (rev 48496)
@@ -119,37 +119,37 @@
 	    ;;
 
 	# Check if the -text flag was given
-	-text)
+	-text | --text)
 	    GRASS_GUI="text"
 	    shift
 	    ;;
 
 	# Check if the -gui flag was given
-	-gui)
+	-gui | --gui)
 	    GRASS_GUI="$DEFAULT_GUI"
 	    shift
 	    ;;
 
 	# Check if the -tcltk flag was given
-	-tcltk)
+	-tcltk | --tcltk)
 	    GRASS_GUI="tcltk"
 	    shift
 	    ;;
 
 	# Check if the -oldtcltk flag was given
-	-oldtcltk)
+	-oldtcltk | --oldtcltk)
 	    GRASS_GUI="oldtcltk"
 	    shift
 	    ;;
 
 	# Check if the -wxpython flag was given
-	-wxpython | -wx)
+	-wxpython | -wx | --wxpython | --wx)
 	    GRASS_GUI="wxpython"
 	    shift
 	    ;;
 
     	# Check if the user wants to create a new mapset
-	-c)
+	-c | --c)
 	    CREATE_NEW=1
 	    shift
 	    ;;



More information about the grass-commit mailing list