run_sdk_container: recognize --help flag

When the user passes --help we should not start a container and throw a
late error message afterwards but show the help directly.
This commit is contained in:
Kai Lueke 2022-03-16 15:36:32 +01:00
parent c149d24ced
commit a0574bcf37

View File

@ -51,6 +51,7 @@ usage() {
while [ 0 -lt $# ] ; do while [ 0 -lt $# ] ; do
case "$1" in case "$1" in
-h) usage; exit 0;; -h) usage; exit 0;;
--help) usage; exit 0;;
-t) tty="-t"; shift;; -t) tty="-t"; shift;;
-v) os_version="$2"; shift; shift;; -v) os_version="$2"; shift; shift;;
-V) sdk_version="$2"; shift; shift;; -V) sdk_version="$2"; shift; shift;;