aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-08-26 08:07:24 -0700
committerGitHub <noreply@github.com>2025-08-26 08:07:24 -0700
commit26777283e6cb952ba9242c6299b0948dcc3253a5 (patch)
tree554cc3bf0614cf2ac299e363f1390e6f4c4a79c9 /lldb/source/Commands/CommandObjectFrame.cpp
parentabb18ddc9c3f2f85f1fcbefc25529ed22e84a680 (diff)
downloadllvm-26777283e6cb952ba9242c6299b0948dcc3253a5.zip
llvm-26777283e6cb952ba9242c6299b0948dcc3253a5.tar.gz
llvm-26777283e6cb952ba9242c6299b0948dcc3253a5.tar.bz2
[lldb] Underline short option letters as mnemonics (#153695)
Whenever an option would use something other than the first letter of the long option as the short option, Jim would capitalized the letter we picked as a mnemonic. This has often been mistaken for a typo and Jim wondered if we should stop doing this. During the discussion, David mentioned how this reminds him of the underline in menu bars when holding down alt. I suggested we do something similar in LLDB by underlying the letter in the description. https://discourse.llvm.org/t/should-we-remove-the-capital-letter-in-option-helps/87816
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 5692699..7e58a95 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -349,7 +349,8 @@ protected:
command[0].c_str());
m_options.GenerateOptionUsage(
result.GetErrorStream(), *this,
- GetCommandInterpreter().GetDebugger().GetTerminalWidth());
+ GetCommandInterpreter().GetDebugger().GetTerminalWidth(),
+ GetCommandInterpreter().GetDebugger().GetUseColor());
return;
}