libcurl-docs: make option lists alpha-sorted

The man pages for curl_easy_getinfo, curl_easy_setopt and
curl_multi_setopt now feature the lists of options alphabetically
sorted. Test 1139 verify that they are.

The curl_multi_setopt page also got brief explanations of the listed
options.

Closes #14156
This commit is contained in:
Daniel Stenberg 2024-07-11 15:54:25 +02:00
parent fd0250869f
commit 8dab7465a5
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 1365 additions and 1450 deletions

View file

@ -80,6 +80,15 @@ sub scanmdpage {
}
close($mh);
my @ms = sort @m;
for my $i (0 .. $#m) {
if($ms[$i] ne $m[$i]) {
print STDERR "$file:1:ERROR: $m[$i] is not alphabetical (expected $ms[$i])\n";
$errors++;
# no point in reporting many
last;
}
}
foreach my $m (@words) {
my @g = grep(/$m/, @m);
if(!$g[0]) {