wv_cli: output combined html only if more than 1 file

This commit is contained in:
Laurier Loiselle 2023-03-28 18:12:15 -04:00
parent 1ecbe6d23c
commit 275d4b596e
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -158,7 +158,7 @@ def cli(files, formats, prepend, output_dir, output_name, version, use_qty_multi
)
shared_bom = ret["shared_bom"]
if 'pdf' in output_formats and 'html' in output_formats:
if 'pdf' in output_formats and 'html' in output_formats and len(output_names) > 1:
generate_pdf_output(output_names)
# TODO: move shared bom generation to a method?