1include "llvm/Option/OptParser.td"
2
3class F<string name>: Flag<["--", "-"], name>;
4class S<string name>: Separate<["--", "-"], name>;
5class R<list<string> prefixes, string name>
6  : Option<prefixes, name, KIND_REMAINING_ARGS>;
7
8def help: F<"help">,
9  HelpText<"Prints out the usage information for the LLDB VSCode tool.">;
10def: Flag<["-"], "h">,
11  Alias<help>,
12  HelpText<"Alias for --help">;
13
14def wait_for_debugger: F<"wait-for-debugger">,
15  HelpText<"Pause the program at startup.">;
16def: Flag<["-"], "g">,
17  Alias<wait_for_debugger>,
18  HelpText<"Alias for --wait-for-debugger">;
19
20def port: Separate<["--", "-"], "port">,
21  MetaVarName<"<port>">,
22  HelpText<"Communicate with the lldb-vscode tool over the defined port.">;
23def: Separate<["-"], "p">,
24  Alias<port>,
25  HelpText<"Alias for --port">;
26
27def launch_target: Separate<["--", "-"], "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-files-prefix must also be specified.">;
32
33def comm_file: Separate<["--", "-"], "comm-file">,
34  MetaVarName<"<file>">,
35  HelpText<"The fifo file used to communicate the with the debug adaptor"
36    "when using --launch-target.">;
37