From d54e94e54e5c655ec00b75e5cbd2b6036a3b12ba Mon Sep 17 00:00:00 2001 From: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Date: Sat, 3 Aug 2024 05:58:21 +0200 Subject: [PATCH] fix: add `--compiler-version` as alias of `use` in `forge create` (#8588) add compiler-version as alias of `use` --- crates/cli/src/opts/build/core.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/opts/build/core.rs b/crates/cli/src/opts/build/core.rs index 81fbdf4cbb41..d575f9ae896a 100644 --- a/crates/cli/src/opts/build/core.rs +++ b/crates/cli/src/opts/build/core.rs @@ -58,7 +58,12 @@ pub struct CoreBuildArgs { /// Specify the solc version, or a path to a local solc, to build with. /// /// Valid values are in the format `x.y.z`, `solc:x.y.z` or `path/to/solc`. - #[arg(long = "use", help_heading = "Compiler options", value_name = "SOLC_VERSION")] + #[arg( + long = "use", + alias = "compiler-version", + help_heading = "Compiler options", + value_name = "SOLC_VERSION" + )] #[serde(skip)] pub use_solc: Option,