One of the things I added was a
resetOptions function. Optimist was the reason I had to figure out how to "uncache" modules after they've been required. If you define options with optimist after you load it there is no way to undefine them.
After calling the above anytime the option "foo" is found in the supplied args optimist now assumes it's value is a string, but I needed to redefine options without restarting the node process and re-requiring optimist. With my resetOptions function in yargs I was...