From 345ddb551bbc950b638bee0af5f8d1d5b852740d Mon Sep 17 00:00:00 2001 From: tchapacan Date: Sat, 6 Apr 2024 22:26:15 +0200 Subject: [PATCH] update readme (add gateway arg) --- README.md | 4 +++- src/main.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8e303a..e3b202a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ To use **livebox-exporter-rs**, follow these steps: 3. **Run the Exporter:** run the binary, using the options. ```bash - livebox-exporter-rs -P -p + livebox-exporter-rs -P ``` 4. **Access Metrics:** Once the exporter is running, access the exposed metrics at: @@ -86,6 +86,7 @@ Supported command-line options (hope `-P` vs `-p` not to confusing): | -P, --password | Livebox password **(required)** | None | | -p, --port | Exporter port | 9100 | | -l, --listen
| Listen address | 0.0.0.0 | +| -G, --gateway
| Livebox gateway ip address | 192.168.1.1 | | -v, --verbose | Enable verbose logging (repeat for increased verbosity) | Off | | -h, --help | Display help message | N/A | @@ -97,6 +98,7 @@ Options: -l, --listen
listen address [default: 0.0.0.0] -v, --verbose... verbose logging -P, --password Livebox password [required] + -G, --gateway Livebox gateway ip address [default: 192.168.1.1] -h, --help Print help -V, --version Print version ``` diff --git a/src/main.rs b/src/main.rs index dfab73a..c89ad34 100644 --- a/src/main.rs +++ b/src/main.rs @@ -383,7 +383,7 @@ mod tests { "-P", "mypassword", "-G", - "192.168.1.10" + "192.168.1.10", ]; let matches = parse_args(args); assert_eq!(