Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from gradus/master

log error if <key> or <value> not arg in config set
  • Loading branch information...
commit 247315fdff5d0562da0d3f5a8e2505a8f7742ab4 2 parents 461e5e4 + 64075db
@cronopio cronopio authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/commands.js
View
2  lib/commands.js
@@ -28,7 +28,7 @@ exports.set = function (key, value, callback) {
var args = Array.prototype.slice.call(arguments);
callback = args.pop();
- if (args.length !== 2) {
+ if (args.indexOf(null) == 0 || args.indexOf(null) == 1){
cliConfig.app.log.error('You must pass both <key> and <value>');
return callback(true, true);
}
Please sign in to comment.
Something went wrong with that request. Please try again.