From: Daniel Stenberg Date: Tue, 11 Apr 2023 09:15:33 +0000 (+0200) Subject: gen.pl: error on duplicated See-Also fields X-Git-Tag: curl-8_1_0~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8fbdb461cecbfe1ac6ecc5d8f6cf181e1507da8;p=thirdparty%2Fcurl.git gen.pl: error on duplicated See-Also fields Updated http2.d accordingly. Closes #10925 --- 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