Skip to content

Commit a09ba95

Browse files
committed
Fix the save-image subcommand for espflash
1 parent 3b34e61 commit a09ba95

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

espflash/src/main.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ fn main() -> Result<()> {
6868
let mut opts = Opts::parse();
6969
let config = Config::load()?;
7070

71-
if !matches!(
72-
opts.subcommand,
73-
Some(SubCommand::BoardInfo(..) | SubCommand::PartitionTable(..)),
74-
) {
71+
if opts.subcommand.is_none() {
7572
// If neither the IMAGE nor SERIAL arguments have been provided, print the
7673
// help message and exit.
7774
if opts.image.is_none() && opts.connect_opts.serial.is_none() {

0 commit comments

Comments
 (0)