(arg: &str, matches: &ArgMatches)
| 308 | } |
| 309 | |
| 310 | fn parse_keypair_file(arg: &str, matches: &ArgMatches) -> Result<Keypair, CliError> { |
| 311 | Ok(read_keypair_file(parse_string(arg, matches)?) |
| 312 | .map_err(|_err| CliError::BadParameter(arg.into()))?) |
| 313 | } |
| 314 | |
| 315 | fn parse_http_method(arg: &str, matches: &ArgMatches) -> Result<HttpMethod, CliError> { |
| 316 | Ok(HttpMethod::from_str(parse_string(arg, matches)?.as_str()) |
no test coverage detected