diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -51,7 +51,27 @@ Or directly: cargo run ``` -The server listens on `0.0.0.0:3000`. +By default the server listens on `0.0.0.0:3000` and reads config from `config.toml`. + +## CLI Arguments + +| Argument | Default | Description | +|----------|---------|-------------| +| `--config <PATH>` | `config.toml` | Path to the configuration file | +| `--bind <ADDR>` | `0.0.0.0:3000` | Address to bind the HTTP server to | + +Examples: + +```sh +# Use a custom config file +./target/release/printstats --config /etc/printstats/config.toml + +# Listen on a different address/port +./target/release/printstats --bind 127.0.0.1:8080 + +# Both at once +./target/release/printstats --config /etc/printstats/config.toml --bind 127.0.0.1:8080 +``` ## API |
