From 8dc6b5bf98737c3972fb89a3984e698daa92f934 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 4 Sep 2020 16:17:32 +0200 Subject: [PATCH] add flag for enabling all checks --- respodns/ui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/respodns/ui.py b/respodns/ui.py index 7651f86..8b1cf73 100644 --- a/respodns/ui.py +++ b/respodns/ui.py @@ -19,9 +19,13 @@ def ui(program, args): desc = "enable pretty-printing progress to stderr" parser.add_argument("--progress", action="store_true", help=desc) + desc = "enable all checks instead of only the most likely ones" + parser.add_argument("--all", action="store_true", help=desc) + a = parser.parse_args(args) - checks = chk.first + chk.likely + checks = [] + chk.first + checks += chk.checks if a.all else chk.likely opts = Options() opts.dry = a.database is None