From: Mischa POSLAWSKY Date: Mon, 9 Sep 2019 21:00:12 +0000 (+0200) Subject: parse options to regress.t X-Git-Url: http://git.shiar.net/barcat.git/commitdiff_plain/75416aa0ec97215b4e2e96d732a86b997e712609 parse options to regress.t --- diff --git a/t/regress.t b/t/regress.t index 5daf496..099b944 100755 --- a/t/regress.t +++ b/t/regress.t @@ -7,6 +7,13 @@ test_count=0 COLUMNS=40 diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L' +for option in "$@" +do + case "$option" in + -*) echo "Usage: $0 [...]"; exit 64;; + esac +done + for candidate in ${@:-t*.in} do test_count=$((test_count+1))