mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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())
|
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")
|
files = args.pop("files")
|
||||||
output = files.pop()
|
output = files.pop()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user