From a8fbdb461cecbfe1ac6ecc5d8f6cf181e1507da8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 11 Apr 2023 11:15:33 +0200 Subject: [PATCH] gen.pl: error on duplicated See-Also fields Updated http2.d accordingly. Closes #10925 --- docs/cmdline-opts/gen.pl | 4 ++++ docs/cmdline-opts/http2.d | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 40bd1b6e1e..db68d31d4e 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -241,6 +241,10 @@ sub single { $protocols=$1; } elsif(/^See-also: *(.*)/i) { + if($seealso) { + print STDERR "ERROR: duplicated See-also in $f\n"; + return 1; + } $seealso=$1; } elsif(/^Requires: *(.*)/i) { diff --git a/docs/cmdline-opts/http2.d b/docs/cmdline-opts/http2.d index fb1b2a05b6..17264b02a6 100644 --- a/docs/cmdline-opts/http2.d +++ b/docs/cmdline-opts/http2.d @@ -6,9 +6,8 @@ Protocols: HTTP Added: 7.33.0 Mutexed: http1.1 http1.0 http2-prior-knowledge http3 Requires: HTTP/2 -See-also: no-alpn -Help: Use HTTP 2 -See-also: http1.1 http3 +Help: Use HTTP/2 +See-also: http1.1 http3 no-alpn Category: http Example: --http2 $URL Multi: mutex