Swapped the order of arguments to validate functions. The convention should be that the shell is always passed before user-supplied options.
5.0.11