op_reth::cli::chainspec

Function chain_value_parser

pub fn chain_value_parser(s: &str) -> Result<Arc<OpChainSpec>, Report>
Available on crate feature optimism only.
Expand description

Clap value parser for OpChainSpecs.

The value parser matches either a known chain, the path to a json file, or a json formatted string in-memory. The json needs to be a Genesis struct.