bool ttlset = false, excl = false, viewfound = false;
dns_rdataclass_t rdclass = dns_rdataclass_in;
bool first = true;
- bool is_option = true;
UNUSED(force);
return (ISC_R_UNEXPECTEDEND);
}
- if (!is_option) {
- nametext = ptr;
- } else if (strcmp(ptr, "--") == 0) {
- is_option = false;
+ if (strcmp(ptr, "--") == 0) {
+ break;
} else if (argcheck(ptr, "dump")) {
dump = true;
} else if (argcheck(ptr, "remove")) {
CHECK(ISC_R_FAILURE);
}
- /* Get the NTA name. */
+ /* Get the NTA name if not found above. */
if (nametext == NULL) {
nametext = next_token(lex, text);
}