[llvm] 5dd9867 - [llvm][llvm-lit] Hide --use-unique-output-file-name from --help (#114812)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 03:40:30 PST 2024


Author: David Spickett
Date: 2024-11-12T11:40:27Z
New Revision: 5dd9867e2d1e698fee980e31da114a37e4c7f612

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

LOG: [llvm][llvm-lit] Hide --use-unique-output-file-name from --help (#114812)

I was too hasty landing an option whose only known use at this time is
LLVM's own CI.

We may be able to remove it before the next branch that would be the
next llvm-lit release outside of llvm, but the timing may not work out.

So I am hiding the option in case that were to happen.

Added: 
    

Modified: 
    llvm/utils/lit/lit/cl_arguments.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/cl_arguments.py b/llvm/utils/lit/lit/cl_arguments.py
index 3e5488f388ccfa..a401c9a09e081b 100644
--- a/llvm/utils/lit/lit/cl_arguments.py
+++ b/llvm/utils/lit/lit/cl_arguments.py
@@ -175,12 +175,15 @@ def parse_args():
         type=lit.reports.TimeTraceReport,
         help="Write Chrome tracing compatible JSON to the specified file",
     )
+    # This option only exists for the benefit of LLVM's Buildkite CI pipelines.
+    # As soon as it is not needed, it should be removed. Its help text would be:
+    # When enabled, lit will add a unique element to the output file name,
+    # before the extension. For example "results.xml" will become
+    # "results.<something>.xml". The "<something>" is not ordered in any
+    # way and is chosen so that existing files are not overwritten. [Default: Off]
     execution_group.add_argument(
         "--use-unique-output-file-name",
-        help="When enabled, lit will add a unique element to the output file name, "
-        'before the extension. For example "results.xml" will become '
-        '"results.<something>.xml". The "<something>" is not ordered in any '
-        "way and is chosen so that existing files are not overwritten. [Default: Off]",
+        help=argparse.SUPPRESS,
         action="store_true",
     )
     execution_group.add_argument(


        


More information about the llvm-commits mailing list