diff options
author | Clemens Buchacher <drizzd@aon.at> | 2009-06-01 16:14:40 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-02 09:44:51 +0400 |
commit | 1f729dca9334ccadbe78768fc792178f4bb8b6e2 (patch) | |
tree | e2d06e865f768b4787f3e7a2964a40bb8ea11a3b /t/test-lib.sh | |
parent | b3f298ab036530274b89a19594a6454bdcf1f760 (diff) |
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>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index dad1437fa4..6e83ceb360 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -115,7 +115,7 @@ do --tee) shift ;; # was handled already *) - break ;; + echo "error: unknown test option '$1'" >&2; exit 1 ;; esac done |