From 58338850dda8f72c6ca186117d9d99de295a0f57 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Thu, 18 Jun 2026 11:23:18 -0700 Subject: [PATCH] move comment to better location --- installer-gui/src-tauri/src/introspect.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer-gui/src-tauri/src/introspect.rs b/installer-gui/src-tauri/src/introspect.rs index d43713f..3c1744b 100644 --- a/installer-gui/src-tauri/src/introspect.rs +++ b/installer-gui/src-tauri/src/introspect.rs @@ -55,9 +55,6 @@ impl Argument<'_> { argument: &'a clap::Arg, modifier: &modifiers::ArgumentModifier<'static>, ) -> anyhow::Result> { - // if an argument doesn't have the data we need, it's silently dropped from the GUI, however, - // tests should prevent this from happening and we could add logging messages about this in - // the future if desired let partial_flag = argument.get_long().with_context(|| { format!( "Missing long form command line flag for {}", @@ -93,6 +90,9 @@ impl Subcommand<'_> { .filter_map(|arg_modifier| { argument_map .get(arg_modifier.clap_id) + // if Argument::try_new fails, the argument is silently dropped from the + // GUI, however, tests should prevent this from happening and we could add + // logging messages about this in the future if desired .and_then(|arg| Argument::try_new(arg, arg_modifier).ok()) }) .collect(),