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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>
This commit is contained in:
parent
cdd8d33587
commit
d97c667937
@ -11,12 +11,15 @@ usage() {
|
|||||||
Options:
|
Options:
|
||||||
-Dkey=val Option to pass on to meson
|
-Dkey=val Option to pass on to meson
|
||||||
|
|
||||||
|
-h, --help Display this help
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
TEMP=$(getopt \
|
TEMP=$(getopt \
|
||||||
--name=$(basename $0) \
|
--name=$(basename $0) \
|
||||||
--options=D \
|
--options='D:h' \
|
||||||
|
--longoptions='help' \
|
||||||
-- "$@")
|
-- "$@")
|
||||||
|
|
||||||
eval set -- "$TEMP"
|
eval set -- "$TEMP"
|
||||||
@ -31,6 +34,11 @@ while true; do
|
|||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
|
||||||
--)
|
--)
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user