purpose of getopts and case statement in show_image function
What is the purpose of this in the show_image function.
while getopts "t" opt; do
case ${opt} in
t)
declare TEST='y'
shift 1;;
esac
done
I understand that it is for testing, but what and how exactly would you test this?