From 8e080faf4a2f1ed49cf16d98ac39f811f2f76558 Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Mon, 12 Sep 2022 20:36:04 -0400 Subject: [PATCH] feat: add rpc cli flags (#29) --- cli/src/main.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index e431937..e528e1a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -37,6 +37,14 @@ fn get_config() -> Result { config.general.rpc_port = Some(port); } + if let Some(execution_rpc) = cli.execution_rpc { + config.general.execution_rpc = execution_rpc; + } + + if let Some(consensus_rpc) = cli.consensus_rpc { + config.general.consensus_rpc = consensus_rpc; + } + Ok(config) } @@ -46,6 +54,10 @@ struct Cli { network: String, #[clap(short, long)] port: Option, - #[clap(short, long)] + #[clap(short = 'w', long)] checkpoint: Option, + #[clap(short, long)] + execution_rpc: Option, + #[clap(short, long)] + consensus_rpc: Option, }