check for invalid option spec