parse options to regress.t
[barcat.git] / t / regress.t
index 5daf496eb2a91b1ee916c16c8744fe9c3b2eaaf5..099b944632d4166f22891e1bdc55fec56a727907 100755 (executable)
@@ -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 [<files>...]"; exit 64;;
+       esac
+done
+
 for candidate in ${@:-t*.in}
 do
        test_count=$((test_count+1))