test-lib: fail if invalid options are passed

Previously, unknown options would be ignored, including any subsequent
valid options.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Clemens Buchacher 2009-06-01 14:14:40 +02:00 committed by Junio C Hamano
parent b3f298ab03
commit 1f729dca93

View File

@ -115,7 +115,7 @@ do
--tee)
shift ;; # was handled already
*)
break ;;
echo "error: unknown test option '$1'" >&2; exit 1 ;;
esac
done