added warning if using an invalid option.