From eda224c64deeed5f04cd929a8754fbceb1c145e7 Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Mon, 6 Nov 2023 19:31:28 -0800 Subject: [PATCH] Fix the sense of the --no-reset flag The argument was set to 'SetFalse', so when present was setting the bool to false, but the test was also negated, so reset was opposite of desired. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 27df71d..fbf7b04 100644 --- a/src/main.rs +++ b/src/main.rs @@ -178,7 +178,7 @@ struct WriteArgs { size: Option, /// Don't reset the microcontroller after writing - #[arg(short, long, action=ArgAction::SetFalse)] + #[arg(short, long)] no_reset: bool, /// Erase method to use before writing