(arg: &str, matches: &ArgMatches)
| 330 | } |
| 331 | |
| 332 | pub fn _parse_i64(arg: &str, matches: &ArgMatches) -> Result<i64, CliError> { |
| 333 | Ok(parse_string(arg, matches)? |
| 334 | .parse::<i64>() |
| 335 | .map_err(|_err| CliError::BadParameter(arg.into())) |
| 336 | .unwrap()) |
| 337 | } |
| 338 | |
| 339 | pub fn parse_u64(arg: &str, matches: &ArgMatches) -> Result<u64, CliError> { |
| 340 | Ok(parse_string(arg, matches)? |
nothing calls this directly
no test coverage detected