Move GetOpt exception handling to the .cpp file