X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..6420adb9d93a17d3d16ae17bb67b012273fa0e8d:/uip/mhmail?ds=sidebyside diff --git a/uip/mhmail b/uip/mhmail index c43f9c3f..27695709 100755 --- a/uip/mhmail +++ b/uip/mhmail @@ -48,6 +48,13 @@ finddir() { esac } +help() { + printf '%s\n' "$usage" + #### Print the nmh intro text. + ${nmhbindir}/mhparam -help | sed -n -e '/^$/,$p' + exit +} + #### Convenience function to allow concise code below. die() { [ $# -gt 0 ] && printf '%s\n' "$1" >&2 @@ -127,7 +134,7 @@ for arg in "$@"; do -f|-fr|-fro|-from) mhmailswitch=1; fromarg=1 ;; -hea|-head|-heade|-header|-headerf|-headerfi|-headerfie|-headerfiel|\ -headerfield) mhmailswitch=1; headerfieldarg=1 ;; - -hel|-help) printf '%s\n' "$usage"; exit ;; + -hel|-help) help ;; -nose|-nosen|-nosend) mhmailswitch=1; sendsw=0 ;; -p|-pr|-pro|-prof|-profi|-profil|-profile) mhmailswitch=1; use_send=1 ;; -resend) die 'mhmail: did you mean -resent instead of -resend?' ;;