]> Kevux Git Server - rit/commitdiff
test-lib: fail if invalid options are passed
authorClemens Buchacher <drizzd@aon.at>
Mon, 1 Jun 2009 12:14:40 +0000 (14:14 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jun 2009 05:44:51 +0000 (22:44 -0700)
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>
t/test-lib.sh

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