add flag for enabling all checks

This commit is contained in:
Connor Olding 2020-09-04 16:17:32 +02:00
parent 49ad63750e
commit 8dc6b5bf98

View file

@ -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