Skip to content

Commit 6f49a62

Browse files
authored
chore: make network flags exclude each other (#12027)
1 parent 7257734 commit 6f49a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/evm/networks/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ pub mod celo;
1717
#[derive(Clone, Debug, Default, Parser, Copy, Serialize, Deserialize)]
1818
pub struct NetworkConfigs {
1919
/// Enable Optimism network features.
20-
#[arg(help_heading = "Networks", long, visible_alias = "optimism")]
20+
#[arg(help_heading = "Networks", long, visible_alias = "optimism", conflicts_with = "celo")]
2121
// Skipped from configs (forge) as there is no feature to be added yet.
2222
#[serde(skip)]
2323
pub optimism: bool,
2424
/// Enable Celo network features.
25-
#[arg(help_heading = "Networks", long)]
25+
#[arg(help_heading = "Networks", long, conflicts_with = "optimism")]
2626
pub celo: bool,
2727
}
2828

0 commit comments

Comments
 (0)