Merge pull request #19 from flatiron/fix-option-reparsing

[fix] Fix option parsing
This commit is contained in:
Marak Squires 2011-11-21 17:10:57 -08:00
commit 223ad35ae2

View file

@ -7,7 +7,6 @@
*/
var util = require('util'),
optimist = require('optimist'),
Memory = require('./memory').Memory;
//
@ -80,10 +79,10 @@ System.prototype.loadArgv = function () {
argv;
if (typeof this.argv === 'object') {
argv = optimist(process.argv.slice(2)).options(this.argv).argv;
argv = require('optimist')(process.argv.slice(2)).options(this.argv).argv;
}
else if (this.argv) {
argv = optimist(process.argv.slice(2)).argv;
argv = require('optimist')(process.argv.slice(2)).argv;
}
if (!argv) {