spm

Personal fork of spm (simple password manager)
git clone git@getsh.org:spm.git
Log | Files | Refs | README | LICENSE

commit 0cbf53fa013a73364442d17c58031f83d6457e82
parent 64e7a0df11f5ad336d9b361752235686abc6d24f
Author: Klemens Nanni <kl3@posteo.org>
Date:   Sat, 12 Mar 2016 18:16:21 +0100

Fail properly on missing arguments

Diffstat:
Mtpm | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tpm b/tpm @@ -106,7 +106,8 @@ show() { ## Parse input -[ $# -gt 2 ] && abort " Too many arguments." +[ ${#} -eq 0 ] || [ ${#} -gt 2 ] \ + && abort "Invalid number of arguments. See 'tpm help'." case "${1}" in insert|list|remove|show)