From 7164d648ee751a12961db9525f9b19fef138c241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Lok=C3=B8y?= Date: Fri, 5 Dec 2014 13:32:22 +0100 Subject: [PATCH] add args to exec --- index.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fbc7328..96b60bd 100644 --- a/index.js +++ b/index.js @@ -26,6 +26,10 @@ module.exports = function ifcConvert(source, dest, options, callback) { var args = [source, dest]; + //If user supplies any args concat them to the args array + if(options && options.args) { + args = args.concat(options.args); + } execFile(ifcConvertPath, args, function(err, stdout, stderr) { diff --git a/package.json b/package.json index 2bb0fce..ff9a60b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ifc-convert", - "version": "0.0.1", + "version": "0.1.0", "description": "Simple wrapper for ifcConvert", "main": "index.js", "repository" : {