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".
This commit is contained in:
Andrew Voynov 2024-02-04 23:36:43 +03:00
parent a3d6e9d07a
commit 009238b068
No known key found for this signature in database
GPG key ID: 1BE92DD685700329

View file

@ -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,