RT3961: Fix switch/case errors in flag parsing