(arg: &str, matches: &ArgMatches)
| 323 | } |
| 324 | |
| 325 | fn parse_string(arg: &str, matches: &ArgMatches) -> Result<String, CliError> { |
| 326 | Ok(matches |
| 327 | .value_of(arg) |
| 328 | .ok_or(CliError::BadParameter(arg.into()))? |
| 329 | .to_string()) |
| 330 | } |
| 331 | |
| 332 | pub fn _parse_i64(arg: &str, matches: &ArgMatches) -> Result<i64, CliError> { |
| 333 | Ok(parse_string(arg, matches)? |
no test coverage detected