From 3f4cc3c0259c05e4b3a14038c66fdfbf0be72079 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Mon, 11 Dec 2017 09:57:46 -0500 Subject: [PATCH] unittests.md: Update for new-style flags. --- docs/unittests.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/unittests.md b/docs/unittests.md index 14e85acd8..ff9237ee7 100644 --- a/docs/unittests.md +++ b/docs/unittests.md @@ -19,7 +19,9 @@ tests on this data. Output the intermediate representation: - dnscontrol -debugjson foo.json print + dnscontrol print-ir --out foo.json --pretty + +NOTE: The `--pretty` flag is optional. Here is a sample test written in `bash` using the [jq](https://stedolan.github.io/jq/) command. This fails if the number of MX records in the `stackex.com` domain is not exactly 5: