MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / parse_usize

Function parse_usize

cli/src/parser.rs:346–351  ·  view source on GitHub ↗
(arg: &str, matches: &ArgMatches)

Source from the content-addressed store, hash-verified

344}
345
346pub fn parse_usize(arg: &str, matches: &ArgMatches) -> Result<usize, CliError> {
347 Ok(parse_string(arg, matches)?
348 .parse::<usize>()
349 .map_err(|_err| CliError::BadParameter(arg.into()))
350 .unwrap())
351}
352
353// Json parsers
354

Callers 1

parse_pool_commandFunction · 0.85

Calls 1

parse_stringFunction · 0.85

Tested by

no test coverage detected