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