xref: /llvm-project/llvm/tools/llvm-debuginfod-find/Opts.td (revision bc152fbf43157659f8b6817e8510e1fbe6e175b5)
1*bc152fbfSPrabhukinclude "llvm/Option/OptParser.td"
2*bc152fbfSPrabhuk
3*bc152fbfSPrabhukclass F<string name, string help> : Flag<["-"], name>, HelpText<help>;
4*bc152fbfSPrabhukclass FF<string name, string help>: Flag<["--"], name>, HelpText<help>;
5*bc152fbfSPrabhukclass S<string name, string meta, string help>: Separate<["--"], name>, HelpText<help>, MetaVarName<meta>;
6*bc152fbfSPrabhuk
7*bc152fbfSPrabhukdef help : FF<"help", "Display available options">;
8*bc152fbfSPrabhukdef : F<"h", "Alias for --help">, Alias<help>;
9*bc152fbfSPrabhuk
10*bc152fbfSPrabhukdef fetch_executable : FF<"executable", "If set, fetch a binary file associated with this build id, containing the executable sections.">;
11*bc152fbfSPrabhukdef fetch_debuginfo : FF<"debuginfo", "If set, fetch a binary file associated with this build id, containing the debuginfo sections.">;
12*bc152fbfSPrabhukdef fetch_source : S<"source", "<string>", "Fetch a source file associated with this build id, which is at this relative path relative to the compilation directory.">;
13*bc152fbfSPrabhukdef dump_to_stdout : FF<"dump", "If set, dumps the contents of the fetched artifact "
14*bc152fbfSPrabhuk                          "to standard output. Otherwise, dumps the absolute "
15*bc152fbfSPrabhuk                          "path to the cached artifact on disk.">;
16*bc152fbfSPrabhukdef debug_file_directory : S<"debug-file-directory", "<string>", "Path to directory where to look for debug files.">;
17*bc152fbfSPrabhuk
18