Skip to content

Commit 265bba7

Browse files
authored
feature: use --package and -p as an alias for --shader-crate (#109)
1 parent 91286dd commit 265bba7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/cargo-gpu/src/install.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ impl InstalledBackend {
6565
#[non_exhaustive]
6666
pub struct Install {
6767
/// Directory containing the shader crate to compile.
68-
#[clap(long, default_value = "./")]
68+
#[clap(long, alias("package"), short_alias('p'), default_value = "./")]
69+
#[serde(alias = "package")]
6970
pub shader_crate: PathBuf,
7071

7172
#[expect(

crates/cargo-gpu/src/target_specs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn update_target_specs_files(
9999
} else {
100100
// copy over the target-specs
101101
log::info!(
102-
"target-specs resolution: coping target-specs from `{}`{}",
102+
"target-specs resolution: copying target-specs from `{}`{}",
103103
target_specs_dst.display(),
104104
if update_files { "" } else { " was skipped" }
105105
);
@@ -124,7 +124,7 @@ pub fn update_target_specs_files(
124124
);
125125
if update_files {
126126
log::info!(
127-
"target-specs: Writing legacy target specs into `{}`",
127+
"target-specs: writing legacy target specs into `{}`",
128128
target_specs_dst.display()
129129
);
130130
write_legacy_target_specs(&target_specs_dst)?;

0 commit comments

Comments
 (0)