zpass: improved help

This commit is contained in:
zawz 2020-05-03 16:58:26 +02:00
parent 8fa4f0dc3f
commit 748a67f148

View file

@ -31,7 +31,7 @@ usage()
ZPASS_UNK_OP_CALL 'copy' Operation to call on unrecognized first argument ZPASS_UNK_OP_CALL 'copy' Operation to call on unrecognized first argument
All operations can be shortened to their first char unless specified 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)" ;; n|new) setval "$2" "$(randpass $3)" ;;
r|rm) remove "$2" "$3" ;; r|rm) remove "$2" "$3" ;;
x|copy|clipboard) copy "$2" ;; x|copy|clipboard) copy "$2" ;;
h|help) usage ;; -h|h|help) usage ;;
*) "$0" $ZPASS_UNK_OP_CALL "$@" ;; *) [ -n "$ZPASS_UNK_OP_CALL" ] && "$0" $ZPASS_UNK_OP_CALL "$@" ;;
esac esac