better error message in case of illegal option