2013-01-23 13:23:47 +08:00
|
|
|
var ConnectionParameters = require(__dirname + '/../lib/connection-parameters');
|
|
|
|
var config = new ConnectionParameters(process.argv[2]);
|
2010-10-25 14:30:14 +08:00
|
|
|
|
2012-05-31 11:12:14 +08:00
|
|
|
for(var i = 0; i < process.argv.length; i++) {
|
|
|
|
switch(process.argv[i].toLowerCase()) {
|
|
|
|
case 'native':
|
|
|
|
config.native = true;
|
2010-10-25 14:30:14 +08:00
|
|
|
break;
|
2012-05-31 11:12:14 +08:00
|
|
|
case 'binary':
|
|
|
|
config.binary = true;
|
2010-10-25 14:30:14 +08:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config;
|