spm

Personal fork of spm (simple password manager)

commit d7962a108ef4bd1336a566c03ac753c8d6f77f45
parent e0b79cc53318d59a1fb10814705b5fc9289cf31d
Author: Klemens Nanni <kl3@posteo.org>
Date: Sun, 15 May 2016 23:51:04 +0200

No need for usage(), refer to man page as well
1 file changed, 5 insertions(+), 5 deletions(-)
M
tpm
|
10
+++++-----
diff --git a/tpm b/tpm
@@ -45,10 +45,6 @@ readpw() {
 	[ -t 0 ] && stty echo
 }
 
-usage() {
-	printf 'USAGE: tpm show|insert|list|help [ENTRY|GROUP]\n'
-}
-
 ## Commands
 
 insert() {

@@ -113,7 +109,11 @@ case "${1}" in
 		${1}    "${2}"
 		;;
 	help)
-		usage
+		cat <<- EOF
+		USAGE:	tpm show|insert|list|help [ENTRY|GROUP]
+
+		See tpm(1) for more information.
+		EOF
 		;;
 	*)
 		abort   "Invalid command. See 'tpm help'."