diff options
| author | Med Ismail Bennani <ismail@bennani.ma> | 2023-08-14 12:03:16 +0200 |
|---|---|---|
| committer | Med Ismail Bennani <ismail@bennani.ma> | 2023-08-18 20:50:39 +0100 |
| commit | eef5eadbe617a9530d982a9ea3cfc284d2a52858 (patch) | |
| tree | c5fd72820841733069b1ebfb34ed6b53dc4575ca /lldb/test/Shell/ScriptInterpreter/Python/Crashlog | |
| parent | 7602641d7bf96b727e1739e2f68db1cadc27324a (diff) | |
| download | llvm-eef5eadbe617a9530d982a9ea3cfc284d2a52858.zip llvm-eef5eadbe617a9530d982a9ea3cfc284d2a52858.tar.gz llvm-eef5eadbe617a9530d982a9ea3cfc284d2a52858.tar.bz2 | |
[lldb/crashlog] Replace deprecated optparse by argparse (NFC)
This patch replace the deprecated `optparse` module used for the
`crashlog`& `save_crashlog` commands with the new `argparse` from the
python standard library. This provides many benefits such as showing the
default values for each option in the help description, but also greatly
improve the handling of position arguments.
Differential Revision: https://reviews.llvm.org/D157849
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/Crashlog')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test index d35e623..6c1af2d 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test @@ -2,8 +2,10 @@ # CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands -# CHECK: Usage: crashlog [options] <FILE> [FILE ...] +# CHECK: usage: crashlog [options] <FILE> [FILE ...] # CHECK: Symbolicate one or more darwin crash log files to provide source file and line -# CHECK: Options: +# CHECK: positional arguments: +# CHECK-NEXT: FILE crash report(s) to symbolicate (default: None) +# CHECK: options: # CHECK: -h, --help show this help message and exit |
