From nobody Sat Oct 4 16:15: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 1662DA935; Fri, 15 Aug 2025 11:51:05 +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=1755258666; cv=none; b=CphFP4qBw/opGj89KnBSxMceOGniuIQz1eKWSg7RvE8OEwbFuWYwC5ohMCSoRzlNyK7IqDZ3NtbBJaR7xsT7FKbux6CI7nUdzeQCVCvYWSphagzsmxmZ4IVMEVeLP6iPyHx8U2TcrEvbtVWuJQbrXFJMxJATmckRrMb65MGNZ4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755258666; c=relaxed/simple; bh=xHd5yELJPH27y6gsrGTyhvKGeyhmNEsyTEL9ELtOnwI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NX54kxlwLk2bzpQrpWwzVleZvI3h2Sx8PfGFEyMwGad4MhKHtTqmvggeD8Uez7tOaA/C3BSnmAR+UkvJ37nIA/uA5MQfR9ikaUB4/fAGzFPMyeLyxOMAf4hnAL3SXdo/hBuEnSeP2i/kME7+WhcNr8xEcF/OY5fby89/NX5L2kI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nkb0Qwen; 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="nkb0Qwen" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB8D2C4CEF6; Fri, 15 Aug 2025 11:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755258665; bh=xHd5yELJPH27y6gsrGTyhvKGeyhmNEsyTEL9ELtOnwI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nkb0Qwen0NWcT2Pe9q3xTjpsyfmD4oZoMrU9BfA4DkOuC+xy2+/4iwviO3s06/rnY yjLx3BAjQmr5JFSJGj46hBa0AnfNx56nTu2OPmPmiGS0D6S/6a5ry0GeqFGGwI8CrX wptFNXPX+N7HKaHZPojIs+2ZpBz/WYTtu561YqHhFH4Uu/2yWjj3yA6zjKqUvb8xut Dmbt/5PCmq9KIWBSrFveIrc0F96el0UnykMdMA3PkPYccwfrmbV/LbtIQGl41YK1EG bIiP2p1jRzrDVtM07DEp52SLNCMgORudaDK8by5Ji9Yf/Xv5CTC4Ah7iE4xR7V8pQz QUM+NSt6HVrXA== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1umsxc-000000042oO-0CWI; Fri, 15 Aug 2025 13:51:04 +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 03/11] scripts/jobserver-exec: add a help message Date: Fri, 15 Aug 2025 13:50:31 +0200 Message-ID: <2d08ff8644a78256ebb427f40988d04c536f018e.1755258303.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: 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 Content-Type: text/plain; charset="utf-8" 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.50.1