]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/docs: sphinx-build-wrapper: -q is a boolean, not an integer
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Oct 2025 15:43:12 +0000 (17:43 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 8 Oct 2025 07:19:35 +0000 (01:19 -0600)
As reported by Konstantin, sphinx-build -q is a boolean, not an integer.

Fix the code.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Closes: https://lore.kernel.org/all/871pnepxfy.fsf@trenco.lwn.net/
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <cafa10cddce3e5342a66c73f3f51a17fb6c7f5d3.1759851791.git.mchehab+huawei@kernel.org>

tools/docs/sphinx-build-wrapper

index a74998e8309aa5c294b7c4b132f79a32b0e2b257..3e6d166d410253d234b9e4d7a8ce8f810f4ba567 100755 (executable)
@@ -141,7 +141,7 @@ class SphinxBuilder:
         #
         parser = argparse.ArgumentParser()
         parser.add_argument('-j', '--jobs', type=int)
-        parser.add_argument('-q', '--quiet', type=int)
+        parser.add_argument('-q', '--quiet', action='store_true')
 
         #
         # Other sphinx-build arguments go as-is, so place them