Skip to content
Snippets Groups Projects
Commit 534a6b52 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Add -h support to dig

Currently without proper text output.

refs #2137
parent 91dd787a
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ int dig_params_parse(params_t *params, int argc, char *argv[])
dig_params_t *ext_params = DIG_PARAM(params);
// Command line options processing.
while ((opt = getopt(argc, argv, "46c:p:q:t:x:")) != -1) {
while ((opt = getopt(argc, argv, "46hc:p:q:t:x:")) != -1) {
switch (opt) {
case '4':
params_flag_ipv4(params);
......@@ -377,7 +377,8 @@ int dig_params_parse(params_t *params, int argc, char *argv[])
return KNOT_EINVAL;
}
break;
default:
case 'h':
default: // Fall through.
dig_params_help(argc, argv);
return KNOT_ENOTSUP;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment