spm

simple password manager
git clone anongit@rnpnr.xyz:spm.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 9fb6b1172b51490570ffa6a010c59253cffe556e
Parent: 46279ad8150391540fa978e6ebb8f96849f995fd
Author: Randy Palamar
Date:   Sun, 15 Jan 2023 21:55:51 -0700

remove '-g' flag. this was a flag exclusively for tree(1)

Diffstat:
Mspm | 8++------
Mspm.1 | 6++----
2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/spm b/spm @@ -90,9 +90,7 @@ show() { } ## Parse input -[ ${#} -eq 0 ] || [ ${#} -gt 3 ] || -[ ${#} -eq 3 ] && [ "${1:-}" != list ] && - die "spm: wrong number of arguments" +[ $# -gt 2 ] && die "spm: wrong number of arguments" case "${1}" in add|del|search|show) @@ -100,11 +98,9 @@ add|del|search|show) ${1} "${2}" ;; list) - [ "${2:-}" = -g ] && gflag=1 && shift 1 - [ ${#} -gt 2 ] && die "spm list: too many arguments" list "${2:-.}" ;; *) - die "usage: ${0} add|del|list [-g]|search|show|help [[group/]entry|expression]" + die "usage: ${0} add|del|list|search|show [[group/]entry|expression]" ;; esac diff --git a/spm.1 b/spm.1 @@ -1,5 +1,6 @@ .Dd April 21, 2017 .Dt SPM 1 +.Os .Sh NAME .Nm spm .Nd simple password manager @@ -11,7 +12,7 @@ .Nm .Cm help .Nm -.Cm list Oo Fl g Oc Op Ar group +.Cm list Oc Op Ar group .Nm .Cm search Ar expression .Nm @@ -53,9 +54,6 @@ Print a recursive list of all entries in If .Ar group is omitted, the entire storage root is listed. -If the -.Fl g -flag is passed only subgroups are shown. .It Cm search Print the absolute paths of all entries matching .Ar expression