Ensure case clauses are in sync with the string passed to getopts. Remove catch-all clauses as they will never be evaluated. (cherry picked from commit 0dcee1cad3)
0dcee1cad3