Skip to content

Commit 32ad697

Browse files
feat: allow explicit boolean value for wait-vshard-discovery flag
Make `--wait-vshard-discovery` accept an optional boolean value in addition to acting as a regular flag.
1 parent 06beb66 commit 32ad697

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ enum Command {
131131
#[arg(long, value_name = "WITH_AUDIT", default_value_t = false)]
132132
with_audit: bool,
133133
/// Wait for vshard discovery to complete
134-
#[arg(long, default_value_t = true)]
134+
#[arg(long,
135+
num_args = 0..=1,
136+
default_value_t = true,
137+
value_parser = clap::value_parser!(bool)
138+
)]
135139
wait_vshard_discovery: bool,
136140
/// Timeout in seconds for waiting vshard discovery to complete.
137141
#[arg(long, value_name = "SECONDS", default_value_t = 300)]

0 commit comments

Comments
 (0)