Forráskód Böngészése

enables ability to turn off hot reloading (#2351)

Alexander 1 éve
szülő
commit
1ec6819ac8
1 módosított fájl, 8 hozzáadás és 2 törlés
  1. 8 2
      packages/cli/src/cli/cfg.rs

+ 8 - 2
packages/cli/src/cli/cfg.rs

@@ -117,8 +117,14 @@ pub struct ConfigOptsServe {
     #[clap(long, value_enum)]
     pub platform: Option<Platform>,
 
-    /// Build with hot reloading rsx. Will not work with release builds. [default: false]
-    #[clap(long)]
+    /// Build with hot reloading rsx. Will not work with release builds. [default: true]
+    #[clap(long)]
+    #[clap(default_missing_value("true"),
+        default_value("true"),
+        num_args(0..=1),
+        require_equals(true),
+        action = clap::ArgAction::Set,
+    )]
     #[clap(group = "release-incompatible")]
     #[serde(default)]
     pub hot_reload: bool,