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>
Clemens Buchacher committed
Jun 1, 2009 at 14:14 UTC
1f729dca9334ccadbe78768fc792178f4bb8b6e2
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -115,7 +115,7 @@ do
115
--tee)
116
shift ;; # was handled already
117
*)
118
- break ;;
118
+ echo "error: unknown test option '$1'" >&2; exit 1 ;;
119
esac
120
done
121