From 95fa6b199034919af1a4d6077e47d5e9452bd826 Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Thu, 10 Oct 2019 19:43:57 +0000 Subject: [PATCH] [lit] Bring back `--threads` option alias Bring back `--threads` option which was lost in the move of the command line argument parsing code to cl_arguments.py. Update docs since `--workers` is preferred. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374432 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/lit.rst | 2 +- utils/lit/lit/cl_arguments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CommandGuide/lit.rst b/docs/CommandGuide/lit.rst index 7bb499b971d..ff70a21b8df 100644 --- a/docs/CommandGuide/lit.rst +++ b/docs/CommandGuide/lit.rst @@ -53,7 +53,7 @@ GENERAL OPTIONS Show the :program:`lit` help message. -.. option:: -j N, --threads=N +.. option:: -j N, --workers=N Run ``N`` tests in parallel. By default, this is automatically chosen to match the number of detected available CPUs. diff --git a/utils/lit/lit/cl_arguments.py b/utils/lit/lit/cl_arguments.py index 49992609a6a..e5435d60d4b 100644 --- a/utils/lit/lit/cl_arguments.py +++ b/utils/lit/lit/cl_arguments.py @@ -16,7 +16,7 @@ def parse_args(): help="Show version and exit", action="store_true", default=False) - parser.add_argument("-j", "--workers", + parser.add_argument("-j", "--threads", "--workers", dest="numWorkers", metavar="N", help="Number of workers used for testing", -- 2.40.0