[lldb/crashlog] Show help when the command is called without any argument
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Wed, 8 Jun 2022 23:21:24 +0000 (16:21 -0700)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 10 Jun 2022 20:44:43 +0000 (13:44 -0700)
commit5a9fa21ce82fc04d77d52eb1255dd3cf0292d573
treec34e716c17cffc1526860eae8f50a71099d9fdfb
parent70f1021431a625985c00141329c359babecc2c29
[lldb/crashlog] Show help when the command is called without any argument

This patch changes the `crashlog` command behavior to print the help
message if no argument was provided with the command.

rdar://94576026

Differential Revision: https://reviews.llvm.org/D127362

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/examples/python/crashlog.py
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/no-args.test [new file with mode: 0644]