better error-reporting for invalid option specifications