pub fn keypair_of(matches: &ArgMatches<'_>, name: &str) -> Option<Keypair> {
    if let Some(value) = matches.value_of(name) {
        if value == ASK_KEYWORD {
            let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name);
            keypair_from_seed_phrase(name, skip_validation, true, None, true).ok()
        } else {
            read_keypair_file(value).ok()
        }
    } else {
        None
    }
}
// Return the keypair for an argument with filename `name` or None if not present.
Return the keypair for an argument with filename `name` or None if not present.
Return the keypair for an argument with filename ` name ` or None if not present .
pub fn keypair_of(matches: &ArgMatches<'_>, name: &str) -> Option<Keypair> {
    if let Some(value) = matches.value_of(name) {
        if value == ASK_KEYWORD {
            let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name);
            keypair_from_seed_phrase(name, skip_validation, true, None, true).ok()
        } else {
            read_keypair_file(value).ok()
        }
    } else {
        None
    }
}
pub fn keypair_of ( matches : & ArgMatches < ' _ > , name : & str ) -> Option < Keypair > { if let Some ( value ) = matches . value_of ( name ) { if value == ASK_KEYWORD { let skip_validation = matches . is_present ( SKIP_SEED_PHRASE_VALIDATION_ARG . name ) ; keypair_from_seed_phrase ( name , skip_validation , true , None , true ) . ok ( ) } else { read_keypair_file ( value ) . ok ( ) } } else { None } }
Return the keypair for an argument with filename `name` or None if not present.
Return the keypair for an argument with filename ` name ` or None if not present .
matches
&ArgMatches<'_>
name
&str
matches
&ArgMatches<'_>
name
&str