Add unexpected options handling

This commit is contained in:
Juan Carlos Mejías Rodríguez 2018-11-25 13:43:09 -05:00
parent fe9e73c41e
commit 2be6d03efd

4
psu
View File

@ -295,6 +295,10 @@ while getopts a:u:p:l:n:c:e:rsvdt option; do
v) VERBOSE_MODE="true" ;;
d) DEBUG_MODE="true" ;;
t) STRICT_MODE="true" ;;
*)
err "Unexpected option ${option}"
exit 1
;;
esac
done