Better help, readme

This commit is contained in:
Justine
2023-01-09 18:30:52 +01:00
parent f02f23f992
commit 81ff67c753
2 changed files with 23 additions and 7 deletions

View File

@ -8,3 +8,21 @@ TODO:
* Gather info about the client (IP, User-Agent, etc) to do funny stuff with it => Just printing client's adress for now
* Use arguments => Done, clap is very very nice !
* Not satisfied with the way root_folder is handled, being passed on from one function to another.
# Usage
```
A simple web server. Conf file must be toml or ini. Example:
threads = 10
bind_addr = "0.0.0.0:7878"
root_folder = "/my/web/site"
Usage: ssw -c <CONF_FILE>
Options:
-c <CONF_FILE>
-h, --help
Print help information (use `-h` for a summary)
```