mark hot-reload flag incompatible with release

This commit is contained in:
Ege Gungordu 2024-01-20 20:44:52 +03:00
parent 16c59b8e0b
commit 91e378fc5e

View file

@ -78,6 +78,7 @@ impl From<ConfigOptsServe> for ConfigOptsBuild {
} }
#[derive(Clone, Debug, Default, Deserialize, Parser)] #[derive(Clone, Debug, Default, Deserialize, Parser)]
#[command(group = clap::ArgGroup::new("release-incompatible").multiple(true).conflicts_with("release"))]
pub struct ConfigOptsServe { pub struct ConfigOptsServe {
/// Port of dev server /// Port of dev server
#[clap(long)] #[clap(long)]
@ -116,8 +117,9 @@ pub struct ConfigOptsServe {
#[clap(long, value_enum)] #[clap(long, value_enum)]
pub platform: Option<Platform>, pub platform: Option<Platform>,
/// Build with hot reloading rsx [default: false] /// Build with hot reloading rsx. Will not work with release builds. [default: false]
#[clap(long)] #[clap(long)]
#[clap(group = "release-incompatible")]
#[serde(default)] #[serde(default)]
pub hot_reload: bool, pub hot_reload: bool,