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

Function parse_u64

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

Source from the content-addressed store, hash-verified

337}
338
339pub fn parse_u64(arg: &str, matches: &ArgMatches) -> Result<u64, CliError> {
340 Ok(parse_string(arg, matches)?
341 .parse::<u64>()
342 .map_err(|_err| CliError::BadParameter(arg.into()))
343 .unwrap())
344}
345
346pub fn parse_usize(arg: &str, matches: &ArgMatches) -> Result<usize, CliError> {
347 Ok(parse_string(arg, matches)?

Callers 4

parse_delegation_commandFunction · 0.85
parse_pool_commandFunction · 0.85
parse_thread_commandFunction · 0.85
parse_worker_commandFunction · 0.85

Calls 1

parse_stringFunction · 0.85

Tested by

no test coverage detected