Skip to content

Commit

Permalink
Fix the save-image subcommand for espflash
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed May 11, 2022
1 parent 3b34e61 commit a09ba95
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions espflash/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ fn main() -> Result<()> {
let mut opts = Opts::parse();
let config = Config::load()?;

if !matches!(
opts.subcommand,
Some(SubCommand::BoardInfo(..) | SubCommand::PartitionTable(..)),
) {
if opts.subcommand.is_none() {
// If neither the IMAGE nor SERIAL arguments have been provided, print the
// help message and exit.
if opts.image.is_none() && opts.connect_opts.serial.is_none() {
Expand Down

0 comments on commit a09ba95

Please sign in to comment.