From 91e378fc5eac205f94515c4d970eb89803b49dac Mon Sep 17 00:00:00 2001 From: Ege Gungordu Date: Sat, 20 Jan 2024 20:44:52 +0300 Subject: [PATCH] mark hot-reload flag incompatible with release --- packages/cli/src/cli/cfg.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/cli/cfg.rs b/packages/cli/src/cli/cfg.rs index 877fdff33..6f0fe247f 100644 --- a/packages/cli/src/cli/cfg.rs +++ b/packages/cli/src/cli/cfg.rs @@ -78,6 +78,7 @@ impl From for ConfigOptsBuild { } #[derive(Clone, Debug, Default, Deserialize, Parser)] +#[command(group = clap::ArgGroup::new("release-incompatible").multiple(true).conflicts_with("release"))] pub struct ConfigOptsServe { /// Port of dev server #[clap(long)] @@ -116,8 +117,9 @@ pub struct ConfigOptsServe { #[clap(long, value_enum)] pub platform: Option, - /// Build with hot reloading rsx [default: false] + /// Build with hot reloading rsx. Will not work with release builds. [default: false] #[clap(long)] + #[clap(group = "release-incompatible")] #[serde(default)] pub hot_reload: bool,