I may be able to use getopt (not getopts). Let me see what I can do.