diff options
author | Norbert Buchmueller <norbi@nix.hu> | 2018-04-17 00:10:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-14 16:58:28 +0200 |
commit | 8732213db41e4d080651f85b0e6fcee1ebacf612 (patch) | |
tree | 37633f945de8924acd07101738e5681aab24bfca /src/password-store.sh | |
parent | 8683403b77f59c56fcb1f05c61ab33b9fd61a30d (diff) | |
download | pass-8732213db41e4d080651f85b0e6fcee1ebacf612.tar.gz pass-8732213db41e4d080651f85b0e6fcee1ebacf612.tar.bz2 pass-8732213db41e4d080651f85b0e6fcee1ebacf612.zip |
Add tests and documentation of passing options to grep(1)
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-x | src/password-store.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index b852d06..0c9b35d 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -266,7 +266,7 @@ cmd_usage() { $PROGRAM [show] [--clip[=line-number],-c[line-number]] pass-name Show existing password and optionally put it on the clipboard. If put on the clipboard, it will be cleared in $CLIP_TIME seconds. - $PROGRAM grep search-string + $PROGRAM grep [GREPOPTIONS] search-string Search for password files containing search-string when decrypted. $PROGRAM insert [--echo,-e | --multiline,-m] [--force,-f] pass-name Insert new password. Optionally, echo the password back to the console @@ -395,7 +395,7 @@ cmd_find() { } cmd_grep() { - [[ $# -lt 1 ]] && die "Usage: $PROGRAM $COMMAND search-string" + [[ $# -lt 1 ]] && die "Usage: $PROGRAM $COMMAND [GREPOPTIONS] search-string" local passfile grepresults while read -r -d "" passfile; do grepresults="$($GPG -d "${GPG_OPTS[@]}" "$passfile" | grep --color=always "$@")" |