[llvm] ab83d31 - [llvm-debuginfod-find] Fix help text regression (#110752)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 18:57:43 PDT 2024


Author: Prabhuk
Date: 2024-10-01T18:57:39-07:00
New Revision: ab83d31bbdb10a783e71c33b91cb2a76bd745c50

URL: https://github.com/llvm/llvm-project/commit/ab83d31bbdb10a783e71c33b91cb2a76bd745c50
DIFF: https://github.com/llvm/llvm-project/commit/ab83d31bbdb10a783e71c33b91cb2a76bd745c50.diff

LOG: [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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp b/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
index 699fcf8a7dbcd6..0b2968b1bec354 100644
--- a/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
+++ b/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
@@ -77,9 +77,15 @@ static void parseArgs(int argc, char **argv) {
       });
 
   if (Args.hasArg(OPT_help)) {
-    Tbl.printHelp(llvm::outs(),
-                  "llvm-debuginfod-find [options] <input build_id>",
-                  ToolName.str().c_str());
+    Tbl.printHelp(
+        llvm::outs(), "llvm-debuginfod-find [options] <input build_id>",
+        "llvm-debuginfod-find: Fetch debuginfod artifacts\n\n"
+        "This program is a frontend to the debuginfod client library. The "
+        "cache directory, request timeout (in seconds), and debuginfod server "
+        "urls are set by these environment variables:\n"
+        "DEBUGINFOD_CACHE_PATH (default set by sys::path::cache_directory)\n"
+        "DEBUGINFOD_TIMEOUT (defaults to 90s)\n"
+        "DEBUGINFOD_URLS=[comma separated URLs] (defaults to empty)");
     std::exit(0);
   }
 


        


More information about the llvm-commits mailing list