[v9_9] dig option cleanups

4132.	[cleanup]	dig: added +rd as a synonym for +recurse,
			added +class as an unabbreviated alternative
			to +cl. [RT #39686]
This commit is contained in:
Evan Hunt 2015-06-04 08:56:11 -07:00
parent 0abb12c694
commit b2d3001654
3 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,7 @@
4132. [cleanup] dig: added +rd as a synonym for +recurse,
added +class as an unabbreviated alternative
to +cl. [RT #39686]
4130. [bug] The compatability shim for *printf() misprinted some
large numbers. [RT #39586]

View file

@ -836,8 +836,9 @@ plus_option(char *option, isc_boolean_t is_batchfile,
goto invalid_option;
}
break;
case 'l': /* cl */
FULLCHECK("cl");
case 'l': /* class */
/* keep +cl for backwards compatibility */
FULLCHECK2("cl", "class");
noclass = ISC_TF(!state);
break;
case 'm': /* cmd */
@ -989,6 +990,10 @@ plus_option(char *option, isc_boolean_t is_batchfile,
break;
case 'r':
switch (cmd[1]) {
case 'd': /* rdflag */
FULLCHECK("rdflag");
lookup->recurse = state;
break;
case 'e':
switch (cmd[2]) {
case 'c': /* recurse */

View file

@ -436,6 +436,9 @@
that keyword. Other
keywords assign values to options like the timeout interval. They
have the form <option>+keyword=value</option>.
Keywords may be abbreviated, provided the abbreviation is
unambiguous; for example, <literal>+cd</literal> is equivalent
to <literal>+cdflag</literal>.
The query options are:
<variablelist>
@ -551,7 +554,7 @@
</varlistentry>
<varlistentry>
<term><option>+[no]cl</option></term>
<term><option>+[no]class</option></term>
<listitem>
<para>
Display [do not display] the CLASS when printing the
@ -763,6 +766,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]rdflag</option></term>
<listitem>
<para>
A synonym for <parameter>+[no]recurse</parameter>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>+[no]recurse</option></term>
<listitem>