Skip to content

Commit

Permalink
Fix #2: forgot to add -d and -p to docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
handcraftedbits committed Mar 19, 2017
1 parent 0d8c4d7 commit 127aebe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ npm install -g netshot
The netshot server can be started by running

```bash
netshot <directory> <port>
netshot -d <directory> -p <port>
```

Where `<directory>` is the directory where screenshots will be saved and `<port>` is the port used to listen for
incoming connections. If not specified, `<directory>` will default to `%TEMP%\__netshot` on Windows (or
`/tmp/__netshot` on all other platforms) and `<port>` will default to `8000`.
incoming connections. If `-d` is not specified, `<directory>` will default to `%TEMP%\__netshot` on Windows (or
`/tmp/__netshot` on all other platforms). If `-p` is not specified, `<port>` will default to `8000`.

### Headless Usage

When running netshot in a headless manner, you must also create a virtual framebuffer for Electroshot. The recommended
way to do this is to start netshot with `xvfb-run`:

```bash
xvfb-run --server-args "-screen 0 1920x1080x24" netshot
xvfb-run --server-args "-screen 0 640x480x24" netshot
```

### Logging
Expand Down

0 comments on commit 127aebe

Please sign in to comment.