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

Replaced the deprecated optparse with argparse #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdxs
Copy link

@mdxs mdxs commented Mar 26, 2019

Working towards Python 3 compatibility (see #4), this PR replaces the use of the optparse module (deprecated since Python 3.2) with the argparse module available in both Python 2 and 3. The command line interface has also been expanded with more detail (see python dfu.py --help for details).

In the process made the address argument mandatory and more flexible (by adding a parsing/normalizing method for MAC-addresses to the project's util.py).

Please do check whether the tool still works, I've separated this PR out from more future changes; but lacked time to properly test all aspects.

@mdxs mdxs mentioned this pull request Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant