From b60f030a17719b9f5e2018f2970b1f51cc99a84f Mon Sep 17 00:00:00 2001 From: Schell Carl Scivally Date: Thu, 18 Sep 2025 11:36:25 +1200 Subject: [PATCH] feature: use --package and -p as an alias for --shader-crate --- crates/cargo-gpu/src/install.rs | 3 ++- crates/cargo-gpu/src/target_specs.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/cargo-gpu/src/install.rs b/crates/cargo-gpu/src/install.rs index e5f7359..95ff906 100644 --- a/crates/cargo-gpu/src/install.rs +++ b/crates/cargo-gpu/src/install.rs @@ -65,7 +65,8 @@ impl InstalledBackend { #[non_exhaustive] pub struct Install { /// Directory containing the shader crate to compile. - #[clap(long, default_value = "./")] + #[clap(long, alias("package"), short_alias('p'), default_value = "./")] + #[serde(alias = "package")] pub shader_crate: PathBuf, #[expect( diff --git a/crates/cargo-gpu/src/target_specs.rs b/crates/cargo-gpu/src/target_specs.rs index 00deeef..eef8dca 100644 --- a/crates/cargo-gpu/src/target_specs.rs +++ b/crates/cargo-gpu/src/target_specs.rs @@ -99,7 +99,7 @@ pub fn update_target_specs_files( } else { // copy over the target-specs log::info!( - "target-specs resolution: coping target-specs from `{}`{}", + "target-specs resolution: copying target-specs from `{}`{}", target_specs_dst.display(), if update_files { "" } else { " was skipped" } ); @@ -124,7 +124,7 @@ pub fn update_target_specs_files( ); if update_files { log::info!( - "target-specs: Writing legacy target specs into `{}`", + "target-specs: writing legacy target specs into `{}`", target_specs_dst.display() ); write_legacy_target_specs(&target_specs_dst)?;