Skip to content

Commit 2f91d3f

Browse files
committed
Add long help for "language" command
1 parent 6180b95 commit 2f91d3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lldb/source/Commands/CommandObjectLanguage.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ CommandObjectLanguage::CommandObjectLanguage(CommandInterpreter &interpreter)
2121
"language <language-name> <subcommand> [<subcommand-options>]") {
2222
// Let the LanguageRuntime populates this command with subcommands
2323
LanguageRuntime::InitializeCommands(this);
24+
SetHelpLong(
25+
R"(
26+
Language specific subcommands may be used directly (without the `language
27+
<language-name>` prefix), when stopped on a frame written in that
28+
language. For example, from a C++ frame, users may run `demangle`
29+
directly, instead of `language cplusplus demangle`.
30+
31+
Language specific subcommands are only available when the command name
32+
cannot be misinterpreted. Take the `demangle` command for example, if a
33+
Python command named `demangle-tree` were loaded, then the invocation
34+
`demangle` would run `demangle-tree`, not `language cplusplus demangle`.
35+
)");
2436
}
2537

2638
CommandObjectLanguage::~CommandObjectLanguage() = default;

0 commit comments

Comments
 (0)