From 57b8a59632f94689dad6c7560d30f261687c4f64 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 18 Dec 2020 19:19:57 +0900 Subject: [PATCH] Reject invalid --expected-shred-version (#14183) (#14202) * Reject invalid --expected-shred-version * less code (cherry picked from commit 3c9b853268727d768b7b7bdc385d2aaf066372e7) Co-authored-by: Ryo Onodera --- validator/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/validator/src/main.rs b/validator/src/main.rs index 8d210f425c..ac282e8446 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -1140,6 +1140,7 @@ pub fn main() { .long("expected-shred-version") .value_name("VERSION") .takes_value(true) + .validator(is_parsable::) .help("Require the shred version be this value"), ) .arg(