From 2b13ac44c05ed57fe0e7b16da05836802c459280 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 23 Feb 2022 17:47:59 +0800 Subject: [PATCH] Abbreviate `--release` as `-r` Cargo will add this in Rust 1.59, https://github.com/rust-lang/cargo/pull/10133 --- src/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.rs b/src/build.rs index e9ceca2..e12c34c 100644 --- a/src/build.rs +++ b/src/build.rs @@ -84,7 +84,7 @@ pub struct Build { pub all_targets: bool, /// Build artifacts in release mode, with optimizations - #[clap(long)] + #[clap(short = 'r', long)] pub release: bool, /// Build artifacts with the specified Cargo profile