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:
parent
86eef5aa00
commit
3021892deb
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue