summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_alternatives/files
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-02-10 10:18:03 +0000
committerjmmv <jmmv>2005-02-10 10:18:03 +0000
commitf68b2d5400985ed11db9f4f75de35f68079023ca (patch)
tree7dc390d963f71e544e84a101c5dd9eb96d80831f /pkgtools/pkg_alternatives/files
parent237fc52fe68518702b64410eb558d457cffe8e3b (diff)
downloadpkgsrc-f68b2d5400985ed11db9f4f75de35f68079023ca.tar.gz
Update to 1.3: show a more descriptive usage message, useful as a quick
reference. Per tv@'s suggestion.
Diffstat (limited to 'pkgtools/pkg_alternatives/files')
-rw-r--r--pkgtools/pkg_alternatives/files/pkg_alternatives.sh20
1 files changed, 18 insertions, 2 deletions
diff --git a/pkgtools/pkg_alternatives/files/pkg_alternatives.sh b/pkgtools/pkg_alternatives/files/pkg_alternatives.sh
index 998bccf47fd..5665d4754d0 100644
--- a/pkgtools/pkg_alternatives/files/pkg_alternatives.sh
+++ b/pkgtools/pkg_alternatives/files/pkg_alternatives.sh
@@ -1,6 +1,6 @@
#!@SH@
#
-# $NetBSD: pkg_alternatives.sh,v 1.4 2005/01/30 12:35:22 jmmv Exp $
+# $NetBSD: pkg_alternatives.sh,v 1.5 2005/02/10 10:18:03 jmmv Exp $
#
# pkg_alternatives - Generic wrappers for programs with similar interfaces
# Copyright (c) 2005 Julio M. Merino Vidal <jmmv@NetBSD.org>
@@ -539,7 +539,23 @@ mkdir_p() {
# Shows an usage message and exits the program with an error condition.
#
usage() {
- echo "Usage: ${Prog_Name} [-gsw] [-p prefix] action [arg1 ... argN]" 1>&2
+ cat 1>&2 <<EOF
+Usage: ${Prog_Name} [options] action [arg1 ... argN]
+
+Available options:
+ -g Select group mode (default).
+ -p dir Set installation prefix.
+ -s Run in silent mode.
+ -w Select wrapper mode.
+
+Available actions in group mode:
+ auto destroy list manual rebuild register status unregister
+
+Available actions in wrapper mode:
+ auto manual register status unregister
+
+See pkg_alternatives(8) for more information.
+EOF
exit 1
}