summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGabor Javorszky <g.javorszky@f5.com>2024-09-16 11:30:08 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-09-17 01:56:38 +0100
commit7c48546ad38be961940a13a6021d8c61a47c594f (patch)
tree115aa5c57be1968d215775ed407b03bde7dd52e1
parent9e5f961bbaf07b6af426a9dc3c3a4a965d67c152 (diff)
downloadunit-7c48546ad38be961940a13a6021d8c61a47c594f.tar.gz
unit-7c48546ad38be961940a13a6021d8c61a47c594f.tar.bz2
tools/unitctl: adjust readme for socket addresses
CONTROL_SOCKET_ADDRESS is singular, adds note that the flag can be specified multiple times, and adjusts code to print CONTROL_SOCKET_ADDRESS as singular. Signed-off-by: Gabor Javorszky <g.javorszky@f5.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--tools/unitctl/README.md2
-rw-r--r--tools/unitctl/unitctl/src/unitctl.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/unitctl/README.md b/tools/unitctl/README.md
index 953956a3..1a5fcb9d 100644
--- a/tools/unitctl/README.md
+++ b/tools/unitctl/README.md
@@ -69,7 +69,7 @@ Commands:
Options:
-s, --control-socket-address <CONTROL_SOCKET_ADDRESS>
- Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL
+ Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL. This flag can be specified multiple times.
-w, --wait-timeout-seconds <WAIT_TIME_SECONDS>
Number of seconds to wait for control socket to become available
-t, --wait-max-tries <WAIT_MAX_TRIES>
diff --git a/tools/unitctl/unitctl/src/unitctl.rs b/tools/unitctl/unitctl/src/unitctl.rs
index a4c13648..460c7e7b 100644
--- a/tools/unitctl/unitctl/src/unitctl.rs
+++ b/tools/unitctl/unitctl/src/unitctl.rs
@@ -14,7 +14,8 @@ pub(crate) struct UnitCtl {
short = 's',
long = "control-socket-address",
value_parser = parse_control_socket_address,
- help = "Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL"
+ value_name = "CONTROL_SOCKET_ADDRESS",
+ help = "Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL. This flag can be specified multiple times."
)]
pub(crate) control_socket_addresses: Option<Vec<ControlSocket>>,