From b858895c859712e7c0f4e1c5e0436bd20cbe0c34 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. llvm-svn: 374432 --- llvm/docs/CommandGuide/lit.rst | 2 +- llvm/utils/lit/lit/cl_arguments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index 7bb499b971d0..ff70a21b8dfc 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/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/llvm/utils/lit/lit/cl_arguments.py b/llvm/utils/lit/lit/cl_arguments.py index 49992609a6ab..e5435d60d4b6 100644 --- a/llvm/utils/lit/lit/cl_arguments.py +++ b/llvm/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.34.1