Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 30, 2023

Conversation

jessebraham
Copy link
Member

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

Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, tested it a bit, and it behaves as expected, thanks for fixing this!

@jessebraham jessebraham merged commit 2c00fd1 into esp-rs:main May 30, 2023
@jessebraham jessebraham deleted the fixes/erase-part branch May 30, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants