substack/node-optimist — Issue #37: Default not set on long version of option
Author: jafl
Created: 2011-12-05 22:15:10+00:00
State: open

var argv = require('optimist')
.option('p',
{
alias: 'port',
default: 80,
describe: 'Port to listen on'
})
.argv;

argv.p will be set to 80, but argv.port is undefined.