[Lldb-commits] [lldb] [lldb] Underline short option letters as mnemonics (PR #153695)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 15 08:13:39 PDT 2025
================
@@ -736,18 +736,35 @@ let Command = "process launch" in {
}
let Command = "process attach" in {
- def process_attach_continue : Option<"continue", "c">,
- Desc<"Immediately continue the process once attached.">;
- def process_attach_plugin : Option<"plugin", "P">, Arg<"Plugin">,
- Desc<"Name of the process plugin you want to use.">;
- def process_attach_pid : Option<"pid", "p">, Group<1>, Arg<"Pid">,
- Desc<"The process ID of an existing process to attach to.">;
- def process_attach_name : Option<"name", "n">, Group<2>, Arg<"ProcessName">,
- Desc<"The name of the process to attach to.">;
- def process_attach_include_existing : Option<"include-existing", "i">,
- Group<2>, Desc<"Include existing processes when doing attach -w.">;
- def process_attach_waitfor : Option<"waitfor", "w">, Group<2>,
- Desc<"Wait for the process with <process-name> to launch.">;
+ def process_attach_continue
+ : Option<"continue", "c">,
+ Desc<"Immediately ${ansi.underline}c${ansi.normal}ontinue the process "
+ "once attached.">;
+ def process_attach_plugin
+ : Option<"plugin", "P">,
+ Arg<"Plugin">,
+ Desc<"Name of the process ${ansi.underline}p${ansi.normal}lugin you "
+ "want to use.">;
+ def process_attach_pid : Option<"pid", "p">,
+ Group<1>,
+ Arg<"Pid">,
+ Desc<"The ${ansi.underline}p${ansi.normal}rocess ID "
----------------
kastiglione wrote:
both of these are underlining "p", but only one of these has the has the short option of `-p`.
this approach works great for short options of lower case letters, but can still be confusing for upper case short options.
https://github.com/llvm/llvm-project/pull/153695
More information about the lldb-commits
mailing list