substack/node-optimist — pull request #64 by eventualbuddha (2012-07-11 06:08:57+00:00)
Title: Fix showing help in certain JS environments.

Some JS environments (like PhantomJS) need the context of a console.error() call to be console, even though nodejs apparently doesn't care. This, apart from a few custom polyfills, makes optimist compatible with PhantomJS.

See https://github.com/eventualbuddha/yuno-api.