Skip to content

Commit

Permalink
Fix path parsing in CLI. Fixes #154
Browse files Browse the repository at this point in the history
  • Loading branch information
napcs committed Mar 18, 2021
1 parent 64a5db7 commit ab37207
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions lib/command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions lib/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "livereload",
"description": "LiveReload server",
"version": "0.9.2",
"version": "0.9.3",
"contributors": [
{
"name": "Brian P. Hogan",
Expand Down

0 comments on commit ab37207

Please sign in to comment.