]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
gen.pl: error on duplicated See-Also fields
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 09:15:33 +0000 (11:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 10:31:30 +0000 (12:31 +0200)
Updated http2.d accordingly.

Closes #10925

docs/cmdline-opts/gen.pl
docs/cmdline-opts/http2.d

index 40bd1b6e1e85e3904f74a63384983c27ee23d817..db68d31d4e96f68ad7474b9d47816c2d28cd116d 100755 (executable)
@@ -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) {
index fb1b2a05b61e15cf00b05c4242c048170eddac48..17264b02a6ae4098a3d261beaafbc001201355cb 100644 (file)
@@ -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