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

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 14:56:44 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-debuginfo

Author: Prabhuk (Prabhuk)

<details>
<summary>Changes</summary>

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.


---
Full diff: https://github.com/llvm/llvm-project/pull/110752.diff


1 Files Affected:

- (modified) llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp (+7-1) 


``````````diff
diff --git a/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp b/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
index 699fcf8a7dbcd6..e3f3a82d7636cc 100644
--- a/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
+++ b/llvm/tools/llvm-debuginfod-find/llvm-debuginfod-find.cpp
@@ -79,7 +79,13 @@ 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());
+                   "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)\n");
     std::exit(0);
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/110752


More information about the llvm-commits mailing list