Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen.pl: error on duplicated See-Also fields #10925

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cmdline-opts/gen.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 2 additions & 3 deletions docs/cmdline-opts/http2.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down