Add proper error message for command line options.

This commit is contained in:
Érico Nogueira 2021-09-20 20:20:53 -03:00
parent 768c01cfdf
commit f0f63ce268
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ int main(int argc, char **argv)
else if (c == '6') get_aaaa = 1;
else if (c == 'd') query = optarg;
else if (c == 's' && strcmp(optarg, "localhost")) server = optarg;
else e("bad options");
else e("usage: dnsquery [-4|-6] [-d domain] [-s server]");
}
uint8_t q[256], r[1024];