Skip to content

Commit

Permalink
chore: Changed visibility of Cli struct attributes to pub for op-re…
Browse files Browse the repository at this point in the history
  • Loading branch information
cakevm authored Jan 25, 2025
1 parent 60f9277 commit 280b6bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/optimism/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ use reth_node_metrics::recorder::install_prometheus_recorder;
pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt::Debug = NoArgs> {
/// The command to run
#[command(subcommand)]
command: Commands<Spec, Ext>,
pub command: Commands<Spec, Ext>,

/// The chain this node is running.
///
Expand All @@ -82,7 +82,7 @@ pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt:
value_parser = Spec::parser(),
global = true,
)]
chain: Arc<Spec::ChainSpec>,
pub chain: Arc<Spec::ChainSpec>,

/// Add a new instance of a node.
///
Expand All @@ -98,10 +98,11 @@ pub struct Cli<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + fmt:
/// - `HTTP_RPC_PORT`: default - `instance` + 1
/// - `WS_RPC_PORT`: default + `instance` * 2 - 2
#[arg(long, value_name = "INSTANCE", global = true, default_value_t = 1, value_parser = value_parser!(u16).range(..=200))]
instance: u16,
pub instance: u16,

/// The logging configuration for the CLI.
#[command(flatten)]
logs: LogArgs,
pub logs: LogArgs,
}

impl Cli {
Expand Down

0 comments on commit 280b6bf

Please sign in to comment.