Available on crate feature
cli only.Expand description
Cli parsers functions.
Enums§
- Socket
Address Parsing Error - Error thrown while parsing a socket address.
Functions§
- format_
duration_ as_ secs_ or_ ms - Helper to format a Duration to the format that can be parsed by
parse_duration_from_secs_or_ms. - hash_
or_ num_ value_ parser - Parse
BlockHashOrNumber - parse_
duration_ from_ secs - Helper to parse a Duration from seconds
- parse_
duration_ from_ secs_ or_ ms - Helper to parse a Duration from seconds if it’s a number or milliseconds if the input contains
a
mssuffix: - parse_
ether_ value - Parses an ether value from a string.
- parse_
socket_ address - Parse a
SocketAddrfrom astr. - read_
json_ from_ file - Wrapper around
reth_fs_util::read_json_filewhich can be used as a clap value parser.