Skip to content

Commit 3d49ff4

Browse files
Explain
1 parent 901340e commit 3d49ff4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
118118
Arg::new("vhost")
119119
.short('V')
120120
.long("vhost")
121+
// IMPORTANT: this means that subcommands won't be able to override --vhost or -V,
122+
// otherwise the parser will panic. MK.
121123
.global(true)
122124
.env("RABBITMQADMIN_TARGET_VHOST")
123125
.help("target virtual host. Defaults to '/'"),

0 commit comments

Comments
 (0)