That sure is a lot of lines to avoid using getopts...
There seems to be only one possible option, --resume, and only one line is dedicated to handling it...