Skip to content

Commit ab83d31

Browse files
authored
[llvm-debuginfod-find] Fix help text regression (#110752)
While porting the tool from using cl:opt to OptTable, I had mistakenly deleted the help text header that was originally part of the tool. Bringing it back in this patch.
1 parent ca5b81b commit ab83d31

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@ static void parseArgs(int argc, char **argv) {
7777
});
7878

7979
if (Args.hasArg(OPT_help)) {
80-
Tbl.printHelp(llvm::outs(),
81-
"llvm-debuginfod-find [options] <input build_id>",
82-
ToolName.str().c_str());
80+
Tbl.printHelp(
81+
llvm::outs(), "llvm-debuginfod-find [options] <input build_id>",
82+
"llvm-debuginfod-find: Fetch debuginfod artifacts\n\n"
83+
"This program is a frontend to the debuginfod client library. The "
84+
"cache directory, request timeout (in seconds), and debuginfod server "
85+
"urls are set by these environment variables:\n"
86+
"DEBUGINFOD_CACHE_PATH (default set by sys::path::cache_directory)\n"
87+
"DEBUGINFOD_TIMEOUT (defaults to 90s)\n"
88+
"DEBUGINFOD_URLS=[comma separated URLs] (defaults to empty)");
8389
std::exit(0);
8490
}
8591

0 commit comments

Comments
 (0)