[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git] / lldb / tools / lldb-dap / Options.td
blobd7b4a065abec010c88555a14ccfab78d103c38be
1 include "llvm/Option/OptParser.td"
3 class F<string name>: Flag<["--", "-"], name>;
4 class S<string name>: Separate<["--", "-"], name>;
5 class R<list<string> prefixes, string name>
6   : Option<prefixes, name, KIND_REMAINING_ARGS>;
8 def help: F<"help">,
9   HelpText<"Prints out the usage information for the lldb-dap tool.">;
10 def: Flag<["-"], "h">,
11   Alias<help>,
12   HelpText<"Alias for --help">;
14 def wait_for_debugger: F<"wait-for-debugger">,
15   HelpText<"Pause the program at startup.">;
16 def: Flag<["-"], "g">,
17   Alias<wait_for_debugger>,
18   HelpText<"Alias for --wait-for-debugger">;
20 def port: S<"port">,
21   MetaVarName<"<port>">,
22   HelpText<"Communicate with the lldb-dap tool over the defined port.">;
23 def: Separate<["-"], "p">,
24   Alias<port>,
25   HelpText<"Alias for --port">;
27 def launch_target: S<"launch-target">,
28   MetaVarName<"<target>">,
29   HelpText<"Launch a target for the launchInTerminal request. Any argument "
30     "provided after this one will be passed to the target. The parameter "
31     "--comm-file must also be specified.">;
33 def comm_file: S<"comm-file">,
34   MetaVarName<"<file>">,
35   HelpText<"The fifo file used to communicate the with the debug adaptor "
36     "when using --launch-target.">;
38 def debugger_pid: S<"debugger-pid">,
39   MetaVarName<"<pid>">,
40   HelpText<"The PID of the lldb-dap instance that sent the launchInTerminal "
41     "request when using --launch-target.">;
43 def repl_mode: S<"repl-mode">,
44   MetaVarName<"<mode>">,
45   HelpText<"The mode for handling repl evaluation requests, supported modes: variable, command, auto.">;
47 def pre_init_command: S<"pre-init-command">,
48   MetaVarName<"<command>">,
49   HelpText<"A command to execute before the DAP initialization request and "
50     "right after a Debugger has been created.">;
51 def: Separate<["-"], "c">,
52   Alias<pre_init_command>,
53   HelpText<"Alias for --pre-init-command">;