substack/node-optimist — pull request #53 by CodeRarity (2012-04-12 17:47:15+00:00)
Title: Boolean aliases fix

This fixes the problem with boolean aliases. jesusabdullah wrote some tests, and I based my branch off of his master branch with those tests. After fixing a few things with the tests, it was a relatively simple fix. The problem was that it wasn't checking whether the option was an alias for a boolean option before deciding to use the next argument as a string value - I simply added this check. I saw another pull request adding stuff to `flags.bools` every time the argument were parsed - I found this unnecessary, and was able to fix it in one line.

This pull request includes jesusabdullah's pull request and my fixes on top of it.