add example

This commit is contained in:
AJ ONeal 2016-10-17 17:50:17 -06:00
parent ff5857bd27
commit 8de4178a7d
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ Serving /Users/foo/ at https://localhost.daplie.com:8443
Usage Usage
----- -----
Examples:
```
node serve.js --servername jane.daplie.me --agree-tos --email jane@example.com --tunnel
```
* `-p <port>` - i.e. `sudo serve-https -p 443` (defaults to 80+443 or 8443) * `-p <port>` - i.e. `sudo serve-https -p 443` (defaults to 80+443 or 8443)
* `-d <dirpath>` - i.e. `serve-https -d /tmp/` (defaults to `pwd`) * `-d <dirpath>` - i.e. `serve-https -d /tmp/` (defaults to `pwd`)
* `-c <content>` - i.e. `server-https -c 'Hello, World! '` (defaults to directory index) * `-c <content>` - i.e. `server-https -c 'Hello, World! '` (defaults to directory index)