mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
ifcopenshell.draw - error if just 1 file is provided
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user