Skip to content

Commit e3dcbb8

Browse files
Shorten the list of global --options
Because they can cause conflicts, we cannot mark all of them as global, and it makes the CLI a bit weird. There are three exceptions, still: * --vhost (a very common option) * --non-interactive (will never clash) * --table-style (will never clash)
1 parent 3d49ff4 commit e3dcbb8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/cli.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
158158
.arg(
159159
Arg::new("tls")
160160
.long("use-tls")
161-
.global(true)
162161
.help("use TLS (HTTPS) for HTTP API requests ")
163162
.env("RABBITMQADMIN_USE_TLS")
164163
.value_parser(value_parser!(bool))
@@ -169,7 +168,6 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
169168
.arg(
170169
Arg::new("tls-ca-cert-file")
171170
.long("tls-ca-cert-file")
172-
.global(true)
173171
.required(false)
174172
.requires("tls")
175173
.help("Local path to a CA certificate file in the PEM format")
@@ -179,7 +177,6 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
179177
.arg(
180178
Arg::new("tls-cert-file")
181179
.long("tls-cert-file")
182-
.global(true)
183180
.required(false)
184181
.requires("tls-key-file")
185182
.help("Local path to a client certificate file in the PEM format")
@@ -189,7 +186,6 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
189186
.arg(
190187
Arg::new("tls-key-file")
191188
.long("tls-key-file")
192-
.global(true)
193189
.required(false)
194190
.requires("tls-cert-file")
195191
.help("Local path to a client private key file in the PEM format")

0 commit comments

Comments
 (0)