Skip to content

Commit b3d6e47

Browse files
authored
Update README.md
1 parent d12f68c commit b3d6e47

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
A simple command-line HTTP server
33

44
## Usage:
5-
```
5+
```sh
66
cd path/to/web-folder/
77
http-server start
88
```
9+
10+
## Help Doc:
11+
```sh
12+
% http-server start --help
13+
Start the HTTP server
14+
15+
Usage:
16+
http-server start [flags]
17+
18+
Flags:
19+
-d, --directory string Path of the web folder
20+
-f, --file string Path of a file (for sharing a single file)
21+
-h, --help help for start
22+
-p, --port int Port number (default 8080)
23+
--qrcode Show QR code of server URL
24+
--upload Allow uploading files via path /upload
25+
```

0 commit comments

Comments
 (0)