mirror of https://github.com/ericonr/dnsquery.git
Add proper error message for command line options.
This commit is contained in:
parent
768c01cfdf
commit
f0f63ce268
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue