From: Lukas Schauer Date: Sun, 10 Jan 2016 03:44:44 +0000 (+0100) Subject: show help if no arguments are provided X-Git-Tag: v0.1.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb0242a4637a9542c5567c9592b8a847c036d3b0;p=thirdparty%2Fdehydrated.git show help if no arguments are provided --- diff --git a/letsencrypt.sh b/letsencrypt.sh index af0597f..0944c47 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -515,6 +515,8 @@ main() { fi } + [[ "${@}" == "" ]] && eval set -- "--help" + while (( "${#}" )); do case "${1}" in --help|-h)