summaryrefslogtreecommitdiff
path: root/pkglocate
diff options
context:
space:
mode:
authoragc <agc>2001-04-03 09:28:32 +0000
committeragc <agc>2001-04-03 09:28:32 +0000
commitc862684d3d8494048e76ee78c9fcdc04932e5f64 (patch)
tree668ba13de39e16f3a2aa9a9bc628155aaa4e6881 /pkglocate
parent59babb1eb8f6149f9a4412c18fa2642223e4933b (diff)
downloadpkgsrc-c862684d3d8494048e76ee78c9fcdc04932e5f64.tar.gz
Update the usage message to explain what each option letter does.
Diffstat (limited to 'pkglocate')
-rwxr-xr-xpkglocate20
1 files changed, 14 insertions, 6 deletions
diff --git a/pkglocate b/pkglocate
index 0f5f839586a..24f1b2f6ada 100755
--- a/pkglocate
+++ b/pkglocate
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: pkglocate,v 1.5 2001/03/08 11:46:52 drochner Exp $
+# $NetBSD: pkglocate,v 1.6 2001/04/03 09:28:32 agc Exp $
#
#-
# Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -39,10 +39,10 @@
#
# Locate words in description, or files in the PLISTs
#
-# [-i] == ignore case when searching
-# [-f] == look for a file, rather than a word or phrase
-# [-p] == use approximate matching
-# [-v] == be verbose
+# [-i] ignore case when searching
+# [-f] look for a file, rather than a word or phrase
+# [-p] use approximate matching
+# [-v] be verbose
#
# Usage: pkglocate [-i] [-p] [-f] [-v] word
@@ -75,7 +75,15 @@ if [ "$verbose" = "yes" ]; then
fi
if [ $# -lt 1 ]; then
- echo "Usage: pkglocate [-i] [-f] [-p] word"
+ echo "Usage: pkglocate [-i] [-f] [-p] [-v] word"
+ echo " [-i] ignore case when searching"
+ echo " [-f] look for a file, rather than a word or phrase"
+ echo -n " [-p]"
+ if [ "$grepname" != "agrep" ]; then
+ echo -n " (NOT AVAILABLE - needs glimpse package installed)"
+ fi
+ echo " use approximate matching"
+ echo " [-v] be verbose"
exit 1
fi