Allow user to specify =false for default true flags (#4467)

This commit is contained in:
Ryo Hirayama authored and GitHub committed 2025-07-24 12:04:37 -07:00
1 parent 15d369f10f
commit 7fcdee0266
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -94,7 +94,7 @@ pub(crate) struct TargetArgs {
pub(crate) skip_assets: bool,
/// Inject scripts to load the wasm and js files for your dioxus app if they are not already present [default: true]
#[clap(long, default_value_t = true, help_heading = HELP_HEADING)]
#[clap(long, default_value_t = true, help_heading = HELP_HEADING, num_args = 0..=1)]
pub(crate) inject_loading_scripts: bool,
/// Experimental: Bundle split the wasm binary into multiple chunks based on `#[wasm_split]` annotations [default: false]
@@ -105,7 +105,7 @@ pub(crate) struct TargetArgs {
///
/// This will make the binary larger and take longer to compile, but will allow you to debug the
/// wasm binary
#[clap(long, default_value_t = true, help_heading = HELP_HEADING)]
#[clap(long, default_value_t = true, help_heading = HELP_HEADING, num_args = 0..=1)]
pub(crate) debug_symbols: bool,
/// Are we building for a device or just the simulator.
+1 -1
View File
@@ -18,7 +18,7 @@ pub(crate) struct SelfUpdate {
pub version: Option<String>,
/// Install the update.
#[clap(long, default_value = "true")]
#[clap(long, default_value = "true", num_args = 0..=1)]
pub install: bool,
/// List available versions.