[GRASS-SVN] r48497 - grass/branches/develbranch_6/lib/init

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


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

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

Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh	2011-09-27 13:47:25 UTC (rev 48496)
+++ grass/branches/develbranch_6/lib/init/init.sh	2011-09-27 13:47:46 UTC (rev 48497)
@@ -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