There are three facts we can use to our advantage: The option variable ("optvar") stores the option name currently being processed (e.g., a, b, or c). When complete, getopts returns a number greater ...