Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

log error if <value> not arg in config set

  • Loading branch information...
commit 7c76d796ad841e00152199201efb5ebc8b15b16c 1 parent 461e5e4
@gradus 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) == 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.