This patch changes the default command line argument parser on LNT from optparse to click.
Related bugzilla bug: https://bugs.llvm.org/show_bug.cgi?id=32789
Paths
| Differential D33541
Change the LNT command line parser to click ClosedPublic Authored by leandron on May 25 2017, 2:30 AM.
Details Summary This patch changes the default command line argument parser on LNT from optparse to click. Related bugzilla bug: https://bugs.llvm.org/show_bug.cgi?id=32789
Diff Detail
Event TimelineComment Actions @cmatthews: I first tried using argparse, but ran into issues, as explained below. So, instead I decided to try using click to fix PR32789. Does this patch look like what you had in mind? Comment Actions This looks like a great idea to me. I am very happy to modernize to click. Only nit: code and doc comments should always use full sentences. Please fix comment, otherwise looks good!
This revision now requires changes to proceed.Jun 23 2017, 1:27 PM leandron edited edge metadata. leandron marked an inline comment as done. Comment Actions
Comment Actions @cmatthews I've found one docstring that was incorrectly changed. Please let me know if you were talking about a different one when you said "Please fix comment" (or even more than one). This revision is now accepted and ready to land.Jun 27 2017, 10:35 AM Closed by commit rL306534: This patch changes the default command line argument parser on LNT from… (authored by kbeyls). · Explain WhyJun 28 2017, 4:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 104384 lnt/trunk/lnt/lnttool/convert.py
lnt/trunk/lnt/lnttool/create.py
lnt/trunk/lnt/lnttool/import_data.py
lnt/trunk/lnt/lnttool/import_report.py
lnt/trunk/lnt/lnttool/main.py
lnt/trunk/lnt/lnttool/updatedb.py
lnt/trunk/lnt/lnttool/viewcomparison.py
lnt/trunk/lnt/tests/__init__.py
lnt/trunk/lnt/tests/builtintest.py
lnt/trunk/lnt/tests/compile.py
lnt/trunk/lnt/tests/nt.py
lnt/trunk/lnt/tests/test_suite.py
lnt/trunk/lnt/util/multitool.py
lnt/trunk/requirements.client.txt
|