Reject invalid --expected-shred-version (#14183)

* Reject invalid --expected-shred-version

* less code
This commit is contained in:
Ryo Onodera 2020-12-18 16:01:26 +09:00 committed by GitHub
parent e8cc0bef6c
commit 3c9b853268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1140,6 +1140,7 @@ pub fn main() {
.long("expected-shred-version")
.value_name("VERSION")
.takes_value(true)
.validator(is_parsable::<u16>)
.help("Require the shred version be this value"),
)
.arg(