refuse to process invalid arguments to cipherscan itself

This commit is contained in:
Richard Soderberg 2015-08-31 15:04:39 -07:00
parent 5f43f911bd
commit fc4927be5b
1 changed files with 5 additions and 5 deletions

View File

@ -1335,11 +1335,11 @@ do
shift
break
;;
# -*)
# UNKNOWNOPTIONS=$((UNKNOWNOPTIONS+$1))
# # echo "WARN: Unknown option (ignored): $1" >&2
# shift
# ;;
-*)
UNKNOWNOPTIONS=$((UNKNOWNOPTIONS+$1))
echo "$0: Unknown option: $1" >&2
exit 1
;;
*) # no more options we understand.
break
;;