/// Parse command-line args into `ReplicaArgs`
Parse command-line args into `ReplicaArgs`
Parse command - line args into ` ReplicaArgs `
pub fn parse_args() -> Result<ReplicaArgs, clap::Error> {
    let args_result = ReplicaArgs::from_iter_safe(env::args());
    args_result.map(|args| {
        if args.print_sample_config {
            print!("{}", SAMPLE_CONFIG);
            std::process::exit(0);
        }
        args
    })
}
pub fn parse_args ( ) -> Result < ReplicaArgs , clap :: Error > { let args_result = ReplicaArgs :: from_iter_safe ( env :: args ( ) ) ; args_result . map ( | args | { if args . print_sample_config { print ! ( " " SAMPLE_CONFIG ) ; std :: process :: exit ( 0 ) ; } args } ) }
Parse command-line args into `ReplicaArgs`
Parse command - line args into ` ReplicaArgs `