]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
kdig: don't show section names when +noall option is set
authorJan Hak <jan.hak@nic.cz>
Wed, 4 Aug 2021 09:53:29 +0000 (11:53 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 5 Aug 2021 06:15:11 +0000 (08:15 +0200)
fixes #749

src/utils/kdig/kdig_params.c

index 33a741ef64c86c487d29e123ed06c2b8430dcd2f..9d31561db2dd8b772eb2ff70dc5bc0df1fc466b3 100644 (file)
@@ -293,6 +293,7 @@ static int opt_all(const char *arg, void *query)
        query_t *q = query;
 
        q->style.show_header = true;
+       q->style.show_section = true;
        q->style.show_edns = true;
        q->style.show_question = true;
        q->style.show_answer = true;
@@ -309,6 +310,7 @@ static int opt_noall(const char *arg, void *query)
        query_t *q = query;
 
        q->style.show_header = false;
+       q->style.show_section = false;
        q->style.show_edns = false;
        q->style.show_query = false;
        q->style.show_question = false;