Skip to content

Commit ce3b14d

Browse files
authored
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
1 parent ea363a0 commit ce3b14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/native/build-commons.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ while :; do
311311

312312
lowerI="$(echo "${1/--/-}" | tr "[:upper:]" "[:lower:]")"
313313
case "$lowerI" in
314-
-\?|-h|--help)
314+
-\?|-h|-help)
315315
usage
316316
exit 1
317317
;;

0 commit comments

Comments
 (0)