From nobody Fri Oct 3 07:43:40 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 E231B2BE039; Thu, 4 Sep 2025 07:33:26 +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=1756971207; cv=none; b=nKdu8rqiYBVGj062dlzoBGzE9e3Emr2NbCuNGqS7WLpQBohaF8PSUm/jYbTo7mw568HcfI1pr2g85q6r6h5YuZ+NAZ0WxKqspTmMSvRC0h3LUOaUtmMuKtDma6GRfwB+bQQqTXhIr+lRN2nIvazkohQhpaiCfRTxuWjMGN/W4yo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756971207; c=relaxed/simple; bh=jlol1TuhVNcZDXlNqsLBvYWROc27W0iXgTQpgdIUTbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Ekx9OJn0XSlIh5mFZ/QUASrb0vjlmEXgfD4TYmDdm9qTT2Cacsk4W+kZBIJoWCE+GD7tv/HiCQipHVNfBZNhMUWynyPP1O+Huv79lUHwoBwgrwl3pj/ONd5chS59b4bfxbGIPcc9Rz9fbjf/AGz3qo/o72SmhbkM4AWQJ79dBj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PEzYxh4u; 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="PEzYxh4u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99237C4CEF8; Thu, 4 Sep 2025 07:33:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756971206; bh=jlol1TuhVNcZDXlNqsLBvYWROc27W0iXgTQpgdIUTbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PEzYxh4uTdApX9OUdPVoC+YVi2SnSIQdU2ud5YUIYLHvH3JcyMdCe2rt+HNj31OnR no2awCLXT4J+aV+Fm3dv+sfBfVQH6rzmx4PjGcbUxDngPTbmgtfsk/BD5qx/eOJvuo 9kjR5RGGKyM17xCA/vSYPWi0CU5DDeYihvQdo5IlhqwjjHYxBwIJtSlmCIRnvYhuLK DC9uKgPbEt0kj0aGg/XnmUrS+9e8ERs9CxmKtNSLkrZBuc/kTvcxsHGOCQp7vJ/CJe zcsJJOc5qOvPCnG6/rbX1oYpwoc1km1Ufcj7hnxGo/TkuLho3UE3Do2k6z72HPJGmf xUDkbebAKgUew== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uu4TE-00000009jPH-36dq; Thu, 04 Sep 2025 09:33:24 +0200 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: [PATCH v4 03/19] scripts/jobserver-exec: add a help message Date: Thu, 4 Sep 2025 09:33:03 +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