From 275d4b596e34944fceff199d2888fb7dd942665f Mon Sep 17 00:00:00 2001 From: Laurier Loiselle Date: Tue, 28 Mar 2023 18:12:15 -0400 Subject: [PATCH] wv_cli: output combined html only if more than 1 file --- src/wireviz/wv_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_cli.py b/src/wireviz/wv_cli.py index 9be3738..335ed9d 100644 --- a/src/wireviz/wv_cli.py +++ b/src/wireviz/wv_cli.py @@ -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?