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 <dwheeler@dwheeler.com>
This commit is contained in:
David A. Wheeler 2018-09-30 21:20:48 -04:00
parent 86eef5aa00
commit 3021892deb
1 changed files with 3 additions and 0 deletions

View File

@ -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():