From 90a0880b1e3a274b1125e86362a897d2242241d8 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) --- Cargo.toml | 2 +- README.md | 2 ++ src/main.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f57b644..f930bb3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "livebox-exporter-rs" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index a8e303a..c3b2ca5 100644 --- a/README.md +++ b/README.md @@ -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!(