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.
This commit is contained in:
2023-11-06 19:31:28 -08:00
parent c53a940ca5
commit eda224c64d

View File

@ -178,7 +178,7 @@ struct WriteArgs {
size: Option<u32>,
/// 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