Added debug info on invalid options