From 009238b06868bbd5e026e6af924f4ebf13b3490a Mon Sep 17 00:00:00 2001 From: Andrew Voynov Date: Sun, 4 Feb 2024 23:36:43 +0300 Subject: [PATCH] feat(cli): added short `release` build option Same as `cargo build` has `-r` now `dx build` and `dx bundle` also have it. Since user probably wants to use these commands for production-ready artifacts, the `--release` option is probably used often, same as with `cargo build`. This allow users to use the same `build -r` "pattern". --- packages/cli/src/cli/cfg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/cli/cfg.rs b/packages/cli/src/cli/cfg.rs index 6f0fe247f..5976dd9d2 100644 --- a/packages/cli/src/cli/cfg.rs +++ b/packages/cli/src/cli/cfg.rs @@ -6,7 +6,7 @@ use super::*; #[derive(Clone, Debug, Default, Deserialize, Parser)] pub struct ConfigOptsBuild { /// Build in release mode [default: false] - #[clap(long)] + #[clap(long, short)] #[serde(default)] pub release: bool, @@ -159,7 +159,7 @@ pub struct ConfigOptsServe { #[derive(Clone, Debug, Default, Deserialize, Parser)] pub struct ConfigOptsBundle { /// Build in release mode [default: false] - #[clap(long)] + #[clap(long, short)] #[serde(default)] pub release: bool,