[39794] contrib/select/select.sh

raimue at macports.org raimue at macports.org
Thu Sep 4 17:17:57 PDT 2008


Revision: 39794
          http://trac.macports.org/changeset/39794
Author:   raimue at macports.org
Date:     2008-09-04 17:17:57 -0700 (Thu, 04 Sep 2008)
Log Message:
-----------
contrib/select/select.sh:
Rewritten the usage() output, see #14452

Modified Paths:
--------------
    contrib/select/select.sh

Modified: contrib/select/select.sh
===================================================================
--- contrib/select/select.sh	2008-09-04 23:53:59 UTC (rev 39793)
+++ contrib/select/select.sh	2008-09-05 00:17:57 UTC (rev 39794)
@@ -53,17 +53,19 @@
 
 # print the usage of this tool
 usage() {
-	echo "usage: ${TOOL} [-n] [-f] [-r] [-h] [-v] version"
-	echo ""
-	echo "-n        Show commands to do selection but do not execute them."
-	echo "-f        Ensure the links are correct for the specified version"
-	echo "          even if it maches the current default version."
-	echo "-h        Display this help info."
-	echo "-r        Skip test for necessary rights."
-	echo "-v        Display version of ${0}."
-	echo "-l        List available options for version."
-	echo "-i path   Install mode to perform an initial selection in path."
-	echo ""
+	cat <<EOD
+usage: ${TOOL} [-n] [-f] [-r] [-h] [-v] version
+
+-n        Show commands to do selection but do not execute them.
+-f        Ensure the links are correct for the specified version
+          even if it maches the current default version.
+-h        Display this help info.
+-r        Skip test for necessary rights.
+-v        Display version of ${TOOL}.
+-l        List available options for version.
+-i path   Install mode to perform an initial selection in path.
+
+EOD
 }
 
 # print the version of this tool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080904/683ecfbf/attachment.html 


More information about the macports-changes mailing list