-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Use argparse instead of optparse to parse pairing arguments #24013
Use argparse instead of optparse to parse pairing arguments #24013
Conversation
PR #24013: Size comparison from 241e7b0 to dbbb113 Increases (2 builds for esp32, telink)
Decreases (10 builds for bl602, bl702, esp32, k32w, nrfconnect, psoc6, telink)
Full report (42 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But how about switching to click
instead? Most Python scripts in the repo are based on click framework.
We use
I use 'click' in the caller run_java_test.py, but we need more fine grinned parsing ability here which can specify both positional and optional arguments and with help info built-in |
optparse is deprecated now, https://docs.python.org/3/library/optparse.html says "Deprecated since version 3.2".
Use argparse instead of optparse to parse pairing arguments