mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
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:
parent
a3d6e9d07a
commit
009238b068
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Reference in a new issue