From 5440445cbcf379fccadca77cd3290822092464cc Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 11 Jul 2024 17:43:08 +0500 Subject: [PATCH] ifcopenshell.draw - error if just 1 file is provided --- src/ifcopenshell-python/ifcopenshell/draw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/draw.py b/src/ifcopenshell-python/ifcopenshell/draw.py index 1b0a356679..6a4f67193f 100644 --- a/src/ifcopenshell-python/ifcopenshell/draw.py +++ b/src/ifcopenshell-python/ifcopenshell/draw.py @@ -431,6 +431,10 @@ if __name__ == "__main__": ) args = vars(parser.parse_args()) + + if len(args["files"]) < 2: + parser.error("At least 2 files are required: one or more input files and one output file.") + files = args.pop("files") output = files.pop()