From 748a67f148abe5eccbbf51c82e3e8a8fad63cb67 Mon Sep 17 00:00:00 2001 From: zawz Date: Sun, 3 May 2020 16:58:26 +0200 Subject: [PATCH] zpass: improved help --- zpass/zpass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zpass/zpass b/zpass/zpass index 6e601fb..d42027e 100755 --- a/zpass/zpass +++ b/zpass/zpass @@ -31,7 +31,7 @@ usage() ZPASS_UNK_OP_CALL 'copy' Operation to call on unrecognized first argument All operations can be shortened to their first char unless specified -Unknown operations will perform the operation described in `ZPASS_UNK_OP_CALL` +Unknown first argument will perform the operation described in 'ZPASS_UNK_OP_CALL' on that argument " } @@ -335,6 +335,6 @@ case $1 in n|new) setval "$2" "$(randpass $3)" ;; r|rm) remove "$2" "$3" ;; x|copy|clipboard) copy "$2" ;; - h|help) usage ;; - *) "$0" $ZPASS_UNK_OP_CALL "$@" ;; + -h|h|help) usage ;; + *) [ -n "$ZPASS_UNK_OP_CALL" ] && "$0" $ZPASS_UNK_OP_CALL "$@" ;; esac