summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-04-11 11:15:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-11 12:31:30 +0200
commita8fbdb461cecbfe1ac6ecc5d8f6cf181e1507da8 (patch)
tree48e782062380d76c9aa308a34168701a4586dcff /docs
parent452b8e39ef3afce717395404bb9d62d497d3f5f6 (diff)
downloadcurl-a8fbdb461cecbfe1ac6ecc5d8f6cf181e1507da8.tar.gz
gen.pl: error on duplicated See-Also fields
Updated http2.d accordingly. Closes #10925
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/cmdline-opts/gen.pl4
-rw-r--r--docs/cmdline-opts/http2.d5
2 files changed, 6 insertions, 3 deletions
diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl
index 40bd1b6e1..db68d31d4 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 fb1b2a05b..17264b02a 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