From nobody Thu Oct 2 19:28:03 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B617F2FDC2C; Fri, 12 Sep 2025 11:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757677594; cv=none; b=K+G80qquKWBaHm3hVcyaWDc5A4MY2mpiDV0ccRkmrO5GHIxPv5LOLEJ+eDGhFuGkzPPBrc8pHQIxf7hoBqDxlEIQws6vma4vFh/u3Q2UXfiodeAoG5Fvluu1Tr/xk4HF1Fz7hI9JRHn12tjsjr4IE5nInt8MSgvhh0TYD8hJkto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757677594; c=relaxed/simple; bh=jlol1TuhVNcZDXlNqsLBvYWROc27W0iXgTQpgdIUTbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=M+WiODtax09yHuKbbLNIJXPaur7HDjwTs4K8Mb5DhZV0DrzsZADDOcX7jk0fbOp9YX5t93EVFNbKaa0VJzVpZrZCVOYQHF3FK9OTRbCI3artyvd7jA2k9wd4lB0iwqfPQnr29pSkBj0s8MZvD1t8O7xR+vdcXaP8pBTuvDfM0UI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uR9vkkSB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uR9vkkSB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6362FC4CEFB; Fri, 12 Sep 2025 11:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757677594; bh=jlol1TuhVNcZDXlNqsLBvYWROc27W0iXgTQpgdIUTbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uR9vkkSBW0yv+66nBxYMC/oEvmbvs19AP6iw3YMHN4kWwrMCZlQarYCAbKnQHoSCG A7c+a/P9NalKD/Qu9TxrHgc+AYCVAbOvikeTez+36MjYCQcWbCjglulUg+ThNIHWLl ULzNJRIfbQ95r7CPOq+CV2A/zqrMUyUmV9qjLnLL0Wtfs7Bhaa3UGpFfBmntWq450p KDWsQ7+amhdNfQSxNWvhbdvGJ8cBsRWSoikVb8Gqq/cpCFXlA82VLZ62K3BgafPXz/ MeHn6d3Uduwlorz6ioWjHpR05Rvg838Mq/mY333htYhXFPWg31LCHsmhsuOyXvubSa r5wJcK+poDC6w== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1ux2Ea-00000008Rs5-2Jfq; Fri, 12 Sep 2025 13:46:32 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Jonathan Corbet , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH v5 03/18] scripts/jobserver-exec: add a help message Date: Fri, 12 Sep 2025 13:46:10 +0200 Message-ID: X-Mailer: git-send-email 2.51.0 In-Reply-To: References: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Currently, calling it without an argument shows an ugly error message. Instead, print a message using pythondoc as description. Signed-off-by: Mauro Carvalho Chehab --- scripts/jobserver-exec | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/scripts/jobserver-exec b/scripts/jobserver-exec index 40a0f0058733..ae23afd344ec 100755 --- a/scripts/jobserver-exec +++ b/scripts/jobserver-exec @@ -1,6 +1,15 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0+ =20 +""" +Determines how many parallel tasks "make" is expecting, as it is +not exposed via any special variables, reserves them all, runs a subprocess +with PARALLELISM environment variable set, and releases the jobs back agai= n. + +See: + https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.htm= l#POSIX-Jobserver +""" + import os import sys =20 @@ -12,17 +21,12 @@ sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR)) from jobserver import JobserverExec # pylint: disable=3DC= 0415 =20 =20 -""" -Determines how many parallel tasks "make" is expecting, as it is -not exposed via an special variables, reserves them all, runs a subprocess -with PARALLELISM environment variable set, and releases the jobs back agai= n. - -See: - https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.htm= l#POSIX-Jobserver -""" - def main(): """Main program""" + if len(sys.argv) < 2: + name =3D os.path.basename(__file__) + sys.exit("usage: " + name +" command [args ...]\n" + __doc__) + with JobserverExec() as jobserver: jobserver.run(sys.argv[1:]) =20 --=20 2.51.0