mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
configure: check if any of the arguments contain --help
Currently it checks only the first argument. Fixes #31216
This commit is contained in:
parent
b2799a56a1
commit
7d5fa9edc9
12
configure
vendored
12
configure
vendored
@ -360,6 +360,13 @@ abs_path() {
|
|||||||
(unset CDPATH && cd "$_path" > /dev/null && pwd)
|
(unset CDPATH && cd "$_path" > /dev/null && pwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HELP=0
|
||||||
|
for arg; do
|
||||||
|
case "$arg" in
|
||||||
|
--help) HELP=1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
msg "looking for configure programs"
|
msg "looking for configure programs"
|
||||||
need_cmd cmp
|
need_cmd cmp
|
||||||
need_cmd mkdir
|
need_cmd mkdir
|
||||||
@ -566,11 +573,8 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
OPTIONS=""
|
OPTIONS=""
|
||||||
HELP=0
|
if [ "$HELP" -eq 1 ]
|
||||||
if [ "$1" = "--help" ]
|
|
||||||
then
|
then
|
||||||
HELP=1
|
|
||||||
shift
|
|
||||||
echo
|
echo
|
||||||
echo "Usage: $CFG_SELF [options]"
|
echo "Usage: $CFG_SELF [options]"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user