Skip to content

Commit

Permalink
tools/unitctl: adjust readme for socket addresses
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
javorszky committed Sep 16, 2024
1 parent 4434e10 commit c8d0d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/unitctl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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>
Expand Down
3 changes: 2 additions & 1 deletion tools/unitctl/unitctl/src/unitctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
id = "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>>,
#[arg(
Expand Down

0 comments on commit c8d0d77

Please sign in to comment.