From: Alexander Barton Date: Fri, 27 Oct 2017 10:33:11 +0000 (+0200) Subject: mail-wrapper: Redirect usage information to stderr X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=474ec38cc7084249a3bb70b7a0dac004e9d205b9;p=ax-unix.git mail-wrapper: Redirect usage information to stderr --- diff --git a/mail/wrapper/mail-wrapper b/mail/wrapper/mail-wrapper index 045f94b..7c5a19b 100755 --- a/mail/wrapper/mail-wrapper +++ b/mail/wrapper/mail-wrapper @@ -27,19 +27,21 @@ fi unset dir ax_common ax_common_sourced usage() { - echo >&2 - echo "Usage:" >&2 - echo " $NAME [--help|--usage]" >&2 - echo " $NAME {parameters} [ [ [<…>]]]" >&2 - echo >&2 - echo " -C Use the \"C\" locale, no localized (error) messages." >&2 - echo " --errors|-e Generate email on errors only." >&2 - echo " --from|-f Email address of the sender of the email." >&2 - echo " --subject|-s Subject for the email." >&2 - echo " --to|-t
Email address to send the email to." >&2 - echo >&2 - echo "When no is given, $NAME reads from standard input." >&2 - echo >&2 + { + echo + echo "Usage:" + echo " $NAME [--help|--usage]" + echo " $NAME {parameters} [ [ [<…>]]]" + echo + echo " -C Use the \"C\" locale, no localized (error) messages." + echo " --errors|-e Generate email on errors only." + echo " --from|-f Email address of the sender of the email." + echo " --subject|-s Subject for the email." + echo " --to|-t
Email address to send the email to." + echo + echo "When no is given, $NAME reads from standard input." + echo + } >&2 exit "${1:-0}" }