mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
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:
parent
c149d24ced
commit
a0574bcf37
@ -51,6 +51,7 @@ usage() {
|
||||
while [ 0 -lt $# ] ; do
|
||||
case "$1" in
|
||||
-h) usage; exit 0;;
|
||||
--help) usage; exit 0;;
|
||||
-t) tty="-t"; shift;;
|
||||
-v) os_version="$2"; shift; shift;;
|
||||
-V) sdk_version="$2"; shift; shift;;
|
||||
|
Loading…
Reference in New Issue
Block a user