From 3021892debd924444f2d64d45a4955c878797d98 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sun, 30 Sep 2018 21:20:48 -0400 Subject: [PATCH] Halt if --listrules and --html are invoked simultaneously We don't currently support this combination, so error out if it's attempted. Fixes SourceForge bug report #15 "Incomplete HTML output for list of rules". Signed-off-by: David A. Wheeler --- flawfinder | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flawfinder b/flawfinder index e0704e1..7f1a80a 100755 --- a/flawfinder +++ b/flawfinder @@ -2000,6 +2000,9 @@ def process_options(): print("*** getopt error:", text) usage() sys.exit(16) + if output_format == 1 and list_rules == 1: + print('You cannot list rules in HTML format') + sys.exit(20) def process_files():