parent
ef3222e7ab
commit
1b258bf5b3
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue