diff --git a/index.js b/index.js index 1b50795..0a50291 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,10 @@ var nodemon = require('nodemon') , gulp = require('gulp') module.exports = function (settings) { - settings = settings || { script: '', args: '' } + settings = settings || {} + settings.script = settings.script || '' + settings.options = settings.options || '' + options = ['nodemon', settings.script].concat(settings.options.split(' ')) try { @@ -33,4 +36,4 @@ module.exports = function (settings) { } } catch (e) { throw e } -} \ No newline at end of file +}