esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
471 stars 115 forks source link

Do not require the `--partition-table` argument when erasing partitions #413

Closed jessebraham closed 1 year ago

jessebraham commented 1 year ago

Rather than perform error handling within clap for this, we just move the check (which already existed) into espflash instead, after any package metadata has been read. This will still return an error if no partition table was able to be found, however it should be able to pick up partition tables provided via cargo metadata just fine.

Closes #390