(arg: &str, matches: &ArgMatches)
| 318 | } |
| 319 | |
| 320 | fn parse_pubkey(arg: &str, matches: &ArgMatches) -> Result<Pubkey, CliError> { |
| 321 | Ok(Pubkey::from_str(parse_string(arg, matches)?.as_str()) |
| 322 | .map_err(|_err| CliError::BadParameter(arg.into()))?) |
| 323 | } |
| 324 | |
| 325 | fn parse_string(arg: &str, matches: &ArgMatches) -> Result<String, CliError> { |
| 326 | Ok(matches |
no test coverage detected