diff --git a/README.md b/README.md index fffeb1b..d93c04e 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,9 @@ When submitting code, please keep commits small, and do not modify the README fi # Changelog +### 0.9.3 +* CLI: Fix multiple path parsing bug. + ### 0.9.2 * Server: Added `filesToReload` option to specify a list of filenames that should trigger the reload, rather than relying on extensions alone. * CLI: You can use the `-f` or `--filesToReload` option with the command line tool to specifiy filenames that should trigger a reload. diff --git a/lib/command.coffee b/lib/command.coffee index 660119b..dc91879 100644 --- a/lib/command.coffee +++ b/lib/command.coffee @@ -90,8 +90,8 @@ runner = -> opts.parse(options.reverse(), args, true) - path = opts.arg('path') || '.' - path.split(/\s*,\s*/) + path = (opts.arg('path') || '.') + .split(/\s*,\s*/) .map((x)->resolve(x)) port = opts.get('port') || 35729 diff --git a/lib/command.js b/lib/command.js index 75ae9fc..b743b2a 100644 --- a/lib/command.js +++ b/lib/command.js @@ -85,8 +85,7 @@ } ]; opts.parse(options.reverse(), args, true); - path = opts.arg('path') || '.'; - path.split(/\s*,\s*/).map(function(x) { + path = (opts.arg('path') || '.').split(/\s*,\s*/).map(function(x) { return resolve(x); }); port = opts.get('port') || 35729; diff --git a/package.json b/package.json index 7aa587e..1b8465c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "livereload", "description": "LiveReload server", - "version": "0.9.2", + "version": "0.9.3", "contributors": [ { "name": "Brian P. Hogan",