hpc-container-maker icon indicating copy to clipboard operation
hpc-container-maker copied to clipboard

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

Open dappelha opened this issue 1 year ago • 0 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.

dappelha avatar Dec 02 '23 03:12 dappelha