Add various missing cli validators (#5745)

automerge
This commit is contained in:
Michael Vines
2019-08-30 09:27:35 -07:00
committed by Grimes
parent 4786143524
commit 22667d64d1
6 changed files with 42 additions and 4 deletions

View File

@ -1661,7 +1661,7 @@ fn is_pubkey(string: String) -> Result<(), String> {
}
}
// Return an error if a pubkey cannot be parsed.
// Return an error if a keypair file cannot be parsed.
fn is_keypair(string: String) -> Result<(), String> {
read_keypair(&string)
.map(|_| ())