Skip to content

Commit

Permalink
Fix usage example in README
Browse files Browse the repository at this point in the history
make -host a full valid host address to avoid attempting to
open the browser at an invalid URL (`http://:8080/`)
  • Loading branch information
romshark committed Jun 13, 2021
1 parent 10bd215 commit 5aec3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ go get github.com/romshark/watchserve
## How to use

```
watchserve -host :8080 -f myfile.txt
watchserve -host localhost:8080 -f myfile.txt
```

- `-help` prints help.
- `-f` specifies the file to watch.
- `-host` specifies the server address to listen on.

0 comments on commit 5aec3bf

Please sign in to comment.