Skip to content

Commit f79c53c

Browse files
authored
chore: add alias (#9082)
add alias
1 parent 92702e9 commit f79c53c

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

crates/anvil/src/cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ pub struct AnvilEvmArgs {
581581
pub memory_limit: Option<u64>,
582582

583583
/// Enable Alphanet features
584-
#[arg(long, visible_alias = "alphanet")]
584+
#[arg(long, visible_alias = "odyssey")]
585585
pub alphanet: bool,
586586
}
587587

crates/cast/bin/cmd/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub struct CallArgs {
7474
json: bool,
7575

7676
/// Enable Alphanet features.
77-
#[arg(long)]
77+
#[arg(long, alias = "odyssey")]
7878
pub alphanet: bool,
7979

8080
#[command(subcommand)]

crates/cast/bin/cmd/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct RunArgs {
8484
pub no_rate_limit: bool,
8585

8686
/// Enables Alphanet features.
87-
#[arg(long)]
87+
#[arg(long, alias = "odyssey")]
8888
pub alphanet: bool,
8989
}
9090

crates/common/src/evm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub struct EvmArgs {
147147
pub isolate: bool,
148148

149149
/// Whether to enable Alphanet features.
150-
#[arg(long)]
150+
#[arg(long, alias = "odyssey")]
151151
#[serde(skip)]
152152
pub alphanet: bool,
153153
}

crates/config/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,6 +2447,10 @@ impl<P: Provider> Provider for BackwardsCompatTomlProvider<P> {
24472447
dict.insert("solc".to_string(), v);
24482448
}
24492449
}
2450+
2451+
if let Some(v) = dict.remove("odyssey") {
2452+
dict.insert("alphanet".to_string(), v);
2453+
}
24502454
map.insert(profile, dict);
24512455
}
24522456
Ok(map)

0 commit comments

Comments
 (0)