Re: [PATCH] tools/docs: sphinx-build-wrapper: -q is a boolean, not an integer

From: Jonathan Corbet

Date: Wed Oct 08 2025 - 03:21:17 EST


Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx> writes:

> As reported by Konstantin, sphinx-build -q is a boolean, not an integer.
>
> Fix the code.
>
> Reported-by: Konstantin Ryabitsev <konstantin@xxxxxxxxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/all/871pnepxfy.fsf@xxxxxxxxxxxxxx/
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
> ---
> tools/docs/sphinx-build-wrapper | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/docs/sphinx-build-wrapper b/tools/docs/sphinx-build-wrapper
> index a74998e8309a..3e6d166d4102 100755
> --- a/tools/docs/sphinx-build-wrapper
> +++ b/tools/docs/sphinx-build-wrapper
> @@ -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')

Applied to the build-script branch, thanks.

jon