]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] dig option cleanups
authorEvan Hunt <each@isc.org>
Thu, 4 Jun 2015 15:55:32 +0000 (08:55 -0700)
committerEvan Hunt <each@isc.org>
Thu, 4 Jun 2015 15:55:32 +0000 (08:55 -0700)
4132. [cleanup] dig: added +rd as a synonym for +recurse,
added +class as an unabbreviated alternative
to +cl. [RT #39686]

CHANGES
bin/dig/dig.c
bin/dig/dig.docbook

diff --git a/CHANGES b/CHANGES
index 64fa271f31e53eaad0684bb69ecf3ad8cc783f1d..d51199b117d3444e4f19f6a73659cf0dfcdfde77 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+4132.  [cleanup]       dig: added +rd as a synonym for +recurse,
+                       added +class as an unabbreviated alternative
+                       to +cl. [RT #39686]
+
 4131.  [bug]           Addressed further problems with reloading RPZ
                        zones. [RT #39649]
 
index 6144bfc8881f805388e4bed0347cd8260c92d795..dbf84ddc48ba91a1f0659851ba603cb9c43d88d5 100644 (file)
@@ -879,8 +879,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 */
@@ -1150,6 +1151,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 */
index 66b21c199bbb0a1891ad26c751aca5ffcc937bb9..91a179d9e43ee675edf8c7a6bd54ea82f974bec7 100644 (file)
       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>
        </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
          </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>