From nobody Fri Oct 3 12:14:26 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 B835E32C336; Mon, 1 Sep 2025 14:42:37 +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=1756737757; cv=none; b=W88EQ0MYEy/1FuTQ3vxFjwl0lLPD2ztUHuOVlhlIL8JVk8l1F77qGNOTRTsTWR4ci8to6AoDZNieJPlcvhzahI9B98GYsUSHD8+IbeizZie42mPB0iTgyXOcZeKsj4OMriMAz8vHZvu1wamcyo8DpeEzfHmRdjjbwzaXIcEMjDo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756737757; c=relaxed/simple; bh=4uJOao0piUiPHNvIVuXmCv5lmjFUgA59dFcKkl3BP8U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=BNw8X5LvJ7oAkbxlxV6L+9Z6mNSaU9tRMBxJ/6UtRO1fV2Fu3QbpG9EU8xNnOB5eaAwFKs5ECCDsNVRS1ugu0u9xcHJrgdutDVyvkHoYCmFRpOgWFXGFm5VDpek21wL+KaGi8X4XCDwWe7D5cK6iK/B98q11PLAd+AbsbBiLZpQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dHhU0/jq; 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="dHhU0/jq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59D9CC4CEF4; Mon, 1 Sep 2025 14:42:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756737757; bh=4uJOao0piUiPHNvIVuXmCv5lmjFUgA59dFcKkl3BP8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dHhU0/jqC+LIWC6REIThZTBvIMU54D/EvCMKNNrB9pMtB0EPhYw1YAWee4LYz3iby YvFYbsZm5EmcAEr0whWt7jf7+VRA2wc5T8rllluBTrlC41OJfz0TZWbjtS+my6z4Pj MeGRxUAhIJeMD0fNAUm5O4zRUXR+Xo5XAmbCbCyjvtQLyfxQfBJbCu/4+tCEu2dNpa sFWfAza1UCUoimsmvtG/np3vvkLk7V1PIWYmpZv7Fw2MYmfg3j7ELEptf9d3uVujMF 57Km00vVdxh66d+lMs1wMxl9eIra4rPeKNOQUZ8hZIlwKq4vJgJmSrBz3rqlH8w4nh pKy5wPlYeOK2w== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1ut5jv-00000003G3I-2BXd; Mon, 01 Sep 2025 16:42:35 +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 v3 03/15] scripts/jobserver-exec: add a help message Date: Mon, 1 Sep 2025 16:42:19 +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