From 7f58c9217cdd9fe1ef3f301f2dc9c895382d763f Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sat, 5 Mar 2022 19:11:58 +0100 Subject: build(docker): add help option to print script usage --- bin/deploy.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/bin/deploy.sh b/bin/deploy.sh index b843b97..3a01167 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -15,11 +15,40 @@ loadenvs() { error() { printf "Error: stack name not defined.\n" printf "Usage: sh deploy.sh your-stack-name [OPTIONS]\n" + printf "You can display more information about usage with -h or --help.\n" exit 1 } +help() { + cat <