#221: Simfactory should complain about unused arguments -------------------------+-------------------------------------------------- Reporter: eschnett | Owner: mthomas Type: defect | Status: new Priority: major | Milestone: Component: SimFactory | Version: Resolution: | Keywords: -------------------------+--------------------------------------------------
Comment (by rhaas):
PETSc has the same problem: a central options database of all command line options but no central place where options are defined so the main code does not know which options are valid. Their solution is to warn if at the end of the run, there are any never used options left in the database. The attached patch implements this feature for command line options (but does nothing for eg options taken from machine databases, since those are always present). This is a band-aid until we can come up with something better. It also does nothing about unused arguments, since there does not seem to be a central location where access to arguments could be tracked.