[Lldb-commits] [PATCH] D127362: [lldb/crashlog] Show help when the command is called without any argument
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 8 16:00:01 PDT 2022
mib created this revision.
mib added a reviewer: JDevlieghere.
mib added a project: LLDB.
Herald added a project: All.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.
This patch changes the `crashlog` command behavior to print the help
message if no argument was provided with the command.
rdar://94576026
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127362
Files:
lldb/examples/python/crashlog.py
Index: lldb/examples/python/crashlog.py
===================================================================
--- lldb/examples/python/crashlog.py
+++ lldb/examples/python/crashlog.py
@@ -1226,6 +1226,11 @@
def SymbolicateCrashLogs(debugger, command_args):
option_parser = CrashLogOptionParser()
+
+ if not len(command_args):
+ option_parser.print_help()
+ return
+
try:
(options, args) = option_parser.parse_args(command_args)
except:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127362.435373.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220608/f622a1d5/attachment.bin>
More information about the lldb-commits
mailing list