[lldb] Specify aguments of `image list`
authorDave Lee <davelee.com@gmail.com>
Mon, 23 May 2022 18:00:22 +0000 (11:00 -0700)
committerDave Lee <davelee.com@gmail.com>
Mon, 23 May 2022 18:00:48 +0000 (11:00 -0700)
commit760298adc264f9c1029d93ab38711c131e19a2f4
treea20c4ef6e2869a8ba8a67705e53dd175797d120c
parent4f1e64b54f59dd4c303d04b62926f35bde5a2c79
[lldb] Specify aguments of `image list`

Register positional argument details in `CommandObjectTargetModulesList`.

I recently learned that `image list` takes a module name, but the help info
does not indicate this. With this change, `help image list` will show that it
accepts zero or more module names.

This makes it easier to get info about specific modules, without having to
find/grep through the full image list.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D125154
lldb/source/Commands/CommandObjectTarget.cpp
lldb/test/API/commands/help/TestHelp.py