Skip to content

Commit 7c48546

Browse files
javorszkyac000
authored andcommitted
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 <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
1 parent 9e5f961 commit 7c48546

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/unitctl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Commands:
6969
7070
Options:
7171
-s, --control-socket-address <CONTROL_SOCKET_ADDRESS>
72-
Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL
72+
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.
7373
-w, --wait-timeout-seconds <WAIT_TIME_SECONDS>
7474
Number of seconds to wait for control socket to become available
7575
-t, --wait-max-tries <WAIT_MAX_TRIES>

tools/unitctl/unitctl/src/unitctl.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub(crate) struct UnitCtl {
1414
short = 's',
1515
long = "control-socket-address",
1616
value_parser = parse_control_socket_address,
17-
help = "Path (unix:/var/run/unit/control.sock), tcp address with port (127.0.0.1:80), or URL"
17+
value_name = "CONTROL_SOCKET_ADDRESS",
18+
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."
1819
)]
1920
pub(crate) control_socket_addresses: Option<Vec<ControlSocket>>,
2021

0 commit comments

Comments
 (0)