feature(spawnify) add checkArgs

This commit is contained in:
coderaiser 2014-08-22 10:13:48 -04:00
parent b0a890cb93
commit ef5e294259

View file

@ -17,9 +17,16 @@
callback(error, stdout, stderr);
};
сommand = args.shift();
Util.checkArgs(arguments, ['command', 'callback']);
error = Util.exec.tryLog(function() {
if (!callback) {
callback = options;
options = null;
}
сommand = args.shift();
error = Util.exec.tryLog(function() {
cmd = spawn(сommand, args, options);
});