substack/node-optimist — Issue #40: index.js:35:33: TypeError: Cannot call method 'replace' of undefined
Author: oversteer
Created: 2012-01-23 17:41:18+00:00
State: open

> node --version
v0.6.8

> npm install optimist
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
optimist@0.3.1 ./node_modules/optimist
└── wordwrap@0.0.2

> node
> require('optimist')
TypeError: Cannot call method 'replace' of undefined
at Argv (/.../node_modules/optimist/index.js:35:33)
at Object. (/.../node_modules/optimist/index.js:12:12)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at repl:1:2
at REPLServer.eval (repl.js:80:21)