reorder CLI args, update README

This commit is contained in:
Vinzenz Schroeter 2025-01-26 14:53:53 +01:00
parent 85b3954c35
commit 8590b38d0f
3 changed files with 27 additions and 15 deletions

View file

@ -23,7 +23,19 @@ Without nix: check out this repository and use `cargo run --release`.
## Command line arguments
The application binds to `0.0.0.0:2342` by default (`./servicepoint-simulator --bind host:port` to change this).
```
Usage: servicepoint-simulator [OPTIONS]
Options:
--bind <BIND> address and port to bind to [default: 0.0.0.0:2342]
-f, --font <FONT> The name of the font family to use. This defaults to the system monospace font.
-s, --spacers add spacers between tile rows to simulate gaps in real display
-r, --red Use the red color channel
-g, --green Use the green color channel
-b, --blue Use the blue color channel
-v, --verbose Set default log level lower. You can also change this via the RUST_LOG environment variable.
-h, --help Print help
```
See [env_logger](https://docs.rs/env_logger/latest/env_logger/) to configure logging.