From 2b2f110e064da77200d259b8a394173c826ad26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 18 Nov 2021 00:47:59 +0100 Subject: [PATCH] change to usage --- bin/trashmail | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/trashmail b/bin/trashmail index 2ae0c65..ef47712 100755 --- a/bin/trashmail +++ b/bin/trashmail @@ -18,7 +18,7 @@ HASHLENGTH_DEFAULT=8 PWOPTS_DEFAULT="-c -n -s" PWLENGTH_DEFAULT=50 -show_help () { +usage () { cat << EOF usage: ${0} [] @@ -67,7 +67,7 @@ while : ; do shift ;; --help) - show_help + usage exit 0 ;; -l|--hashlength) @@ -96,7 +96,7 @@ while : ; do ;; *) echo wrong argument $1 >&2 - show_help + usage exit 1 ;; esac