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 100215 lnt/lnttool/convert.py
lnt/lnttool/create.py
lnt/lnttool/import_data.py
lnt/lnttool/import_report.py
lnt/lnttool/main.py
lnt/lnttool/updatedb.py
lnt/lnttool/viewcomparison.py
lnt/tests/__init__.py
lnt/tests/builtintest.py
lnt/tests/compile.py
lnt/tests/nt.py
lnt/tests/test_suite.py
lnt/util/ImportData.py
lnt/util/multitool.py
requirements.client.txt
tests/SharedInputs/FakeCompilers/fakecompiler.py
|
The name _fatal would match more the error logging in the rest of LNT. We use error for non-exiting, and fatal for exit on the spot issues.