Skip to content

Commit

Permalink
Fix handling of --help in the build-commons.sh (dotnet#91590)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
janvorli authored Sep 5, 2023
1 parent ea363a0 commit ce3b14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/native/build-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ while :; do

lowerI="$(echo "${1/--/-}" | tr "[:upper:]" "[:lower:]")"
case "$lowerI" in
-\?|-h|--help)
-\?|-h|-help)
usage
exit 1
;;
Expand Down

0 comments on commit ce3b14d

Please sign in to comment.