From d97c667937a76de843fe8637915acf91b8b55799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 20 Mar 2023 01:55:59 +0100 Subject: [PATCH] ci: Add --help option to meson-install script It's not really necessary in an internal script, but it's easy enough and doesn't hurt *shrug* Part-of: --- .gitlab-ci/install-meson-project.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/install-meson-project.sh b/.gitlab-ci/install-meson-project.sh index c49d50c7f..e87407fe2 100755 --- a/.gitlab-ci/install-meson-project.sh +++ b/.gitlab-ci/install-meson-project.sh @@ -11,12 +11,15 @@ usage() { Options: -Dkey=val Option to pass on to meson + -h, --help Display this help + EOF } TEMP=$(getopt \ --name=$(basename $0) \ - --options=D \ + --options='D:h' \ + --longoptions='help' \ -- "$@") eval set -- "$TEMP" @@ -31,6 +34,11 @@ while true; do shift 2 ;; + -h|--help) + usage + exit 0 + ;; + --) shift break