NVIDIA / hpc-container-maker

HPC Container Maker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building blocks should error if a passed parameter does not match any parameters.

dappelha opened this issue · comments

I misspelled an argument to a building block, and the building block basically didn't care that I tried to pass it nonsense.

example, misspell toolchain= and you silently do not use the toolchain you thought you were using :

mpi = openmpi(toolchainggg=compiler.toolchain)

I'm not a python pro--shouldn't there be a way if you pass arguments to a class and they don't match any argument keywords that there is an error? It would make sense to error if users are passing parameter names that are not found in the class.