Commit 02352338 authored by Daniel Salzman's avatar Daniel Salzman

kdig: change +retries to +retry

parent 3202195c
......@@ -154,7 +154,7 @@ Show TTL value.
Set wait for reply interval in seconds (default is 5 seconds).
This timeout applies to each query try.
.TP
.BI +retries= N
.BI +retry= N
Set number (>=0) of UDP retries (default is 2). This doesn't apply to AXFR/IXFR.
.TP
.BI +bufsize= B
......@@ -196,8 +196,6 @@ Optional port specification has a form of [address]:port instead of address#port
.TP
.BR + [ no ] ttl " instead of " + [ no ] ttlid
.TP
.BR +retries=T " instead of " +retry=T
.TP
Trailing information is formatted slightly different.
.SH EXAMPLES
.B Example 1. Get A record for example.com:
......
......@@ -512,7 +512,7 @@ static void dig_help(void)
" +[no]cl Show DNS class.\n"
" +[no]ttl Show TTL value.\n"
" +time=T Set wait for reply interval in seconds.\n"
" +retries=N Set number of retries.\n"
" +retry=N Set number of retries.\n"
" +bufsize=B Set EDNS buffer size.\n"
" +[no]tcp Use TCP protocol.\n"
" +[no]fail Stop if SERVFAIL.\n"
......@@ -855,8 +855,8 @@ static int parse_opt2(const char *value, dig_params_t *params)
return KNOT_EINVAL;
}
}
else if (strncmp(value, "retries=", 8) == 0) {
if (params_parse_num(value + 8, &query->retries)
else if (strncmp(value, "retry=", 6) == 0) {
if (params_parse_num(value + 6, &query->retries)
!= KNOT_EOK) {
return KNOT_EINVAL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment