diff --git a/src/main.rs b/src/main.rs index 821b570..6952f15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,9 +59,9 @@ enum Commands { /// URL to download the mod from #[arg(long)] url: Option, - /// Whether to ignore exact transitive mod versions + /// Use exact transitive mod dependency versions #[arg(long, short, action)] - ignore_transitive_versions: bool, + locked: bool, /// Minecraft version override #[arg(long, short)] mc_version: Option, @@ -149,7 +149,7 @@ async fn main() -> Result<(), Box> { name, providers, url, - ignore_transitive_versions, + locked, mc_version, modloader, } => { @@ -184,7 +184,7 @@ async fn main() -> Result<(), Box> { }; match resolver::PinnedPackMeta::load_from_current_directory( - ignore_transitive_versions, + !locked, ) .await { @@ -195,7 +195,7 @@ async fn main() -> Result<(), Box> { } let pin_result = modpack_lock - .pin_mod_and_deps(&mod_meta, &modpack_meta, ignore_transitive_versions) + .pin_mod_and_deps(&mod_meta, &modpack_meta, !locked) .await; if let Err(e) = pin_result { revert_modpack_meta(e);