Skip to content

Commit

Permalink
test-lib: fail if invalid options are passed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Buchacher authored and Junio C Hamano committed Jun 2, 2009
1 parent b3f298a commit 1f729dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ do
--tee)
shift ;; # was handled already
*)
break ;;
echo "error: unknown test option '$1'" >&2; exit 1 ;;
esac
done

Expand Down

0 comments on commit 1f729dc

Please sign in to comment.