visionmedia/commander.js — pull request #23 by felixge (2011-11-01 21:08:11+00:00)
Title: Fix: Long-only flags would not take values

When '--longflag [value]', '--longflag' was being mistaken for the
short option, and '[value]' as the long option. This patch fixes
this by checking if the second flag argument starts with [ or <
which indicates a value being expected.