fixed minor typo in option handling error message
fixed confusing error message in option handling code