From ce3b14da2fcc4c97ebdfbbd26d47a9e441db5297 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Tue, 5 Sep 2023 18:12:12 +0200 Subject: [PATCH] Fix handling of `--help` in the build-commons.sh (#91590) The `--help` was not recognized in that script because double dashes were converted to single ones before processing the options. That causes e.g. the src/test/build.sh to not to recognize the `--help` option, so it instead starts building the tests. This change fixes it --- eng/native/build-commons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/native/build-commons.sh b/eng/native/build-commons.sh index ba561ed6e79bfe..1cd4ea0ed1231d 100755 --- a/eng/native/build-commons.sh +++ b/eng/native/build-commons.sh @@ -311,7 +311,7 @@ while :; do lowerI="$(echo "${1/--/-}" | tr "[:upper:]" "[:lower:]")" case "$lowerI" in - -\?|-h|--help) + -\?|-h|-help) usage exit 1 ;;