Minor fixes.

This commit is contained in:
Julien Fontanet 2014-05-27 19:17:47 +01:00
parent 99c28a184f
commit b17e6058d1

View File

@ -48,6 +48,8 @@ exports = module.exports = function (args) {
return help();
}
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
var fnName = args[0].replace(/^--|-\w/g, function (match) {
if (match === '--')
{
@ -57,7 +59,6 @@ exports = module.exports = function (args) {
return match[1].toUpperCase();
});
if (fnName in exports) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
return exports[fnName](args.slice(1));
}
@ -107,7 +108,7 @@ exports.unregister = function () {
'server',
'token',
]);
}
};
exports.listCommands = function (args) {
return connect().then(function (xo) {