-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unitctl: match readme with current state of unitctl output #1425
Conversation
Instead of pluralizing The plural there confuses me, as I don't see where in the code we actually allow multiple sockets to be specified as a single CLI arg. Maybe you can pass |
technically the option is a Option<Vec>, though the parse argument will only return one of them by the looks of it: https://github.com/nginx/unit/blob/master/tools/unitctl/unit-client-rs/src/control_socket_address.rs#L88 I think this is an @avahahn question, half the code suggests it should be plural, other half suggests it should be singular. |
Yeah, Looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix subject prefixes. See comments on other PR.
I could be talking out of my ass here; haven't actually used clap directly. I should instead ask the question: how do you pass multiple sockets to unitctl? The docs for
...I want the append behavior, but (1) what are we doing right now, and (2) if it's not append, how do we switch to that? |
The docs for Arg Types suggest that Append is the default action for Vec types. |
The user will specify each individual control socket per
As you can see at the bottom of this readme section, the flag and its value can be provided multiple times for the append behavior: |
b5eb4e8
to
f5ce7a8
Compare
outstanding:
|
f5ce7a8
to
c8d0d77
Compare
All right, I updated the control socket address option, and made sure this changeset is over the current master branch. |
c8d0d77
to
0e70d26
Compare
Requested change has been made and I need to get this sucker merged!
The correct capitalisation of the name of the software is Unit, not all caps. Signed-off-by: Gabor Javorszky <[email protected]> [ A bunch more s/UNIT/Unit/ - Andrew ] Signed-off-by: Andrew Clayton <[email protected]>
Signed-off-by: Gabor Javorszky <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
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]>
0e70d26
to
7c48546
Compare
|
This PR does the following: