Update command line usage instructions in README for clarity
This commit is contained in:
14
README.md
14
README.md
@@ -8,11 +8,19 @@ It displays a simple HTML or plain-text page with the client's IP address and an
|
|||||||
|
|
||||||
### Command Line
|
### Command Line
|
||||||
|
|
||||||
To run the server from the command line, use the following command:
|
To run the server from the command line:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chmod +x ok-server.py
|
python3 ok-server.py
|
||||||
./ok-server.py
|
python3 ok-server.py --look basic
|
||||||
|
python3 ok-server.py --bind 127.0.0.1 --port 8080 --look bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
`--look` accepts `basic`, `nice`, or `bootstrap`.
|
||||||
|
You can override the look per request with the `look` query parameter, for example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -i "http://localhost:8000/?look=basic"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|||||||
Reference in New Issue
Block a user