From 19078a7de52a2d3daa25b47fe7c35bb8348f2166 Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 3 Apr 2001 09:28:32 +0000 Subject: Update the usage message to explain what each option letter does. --- pkglocate | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'pkglocate') 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 -- cgit v1.2.3