mirror of
https://github.com/curl/curl.git
synced 2026-07-26 01:27:15 +03:00
tests: Only require EXAMPLE for non-deprecated options
Manpages which document deprecated CURLOPT_ or CURLINFO_ are not required to have an EXAMPLE section since they might effectively be dead no-ops which we don't want to trick users into believing they can use by copying example code. Closes: #13540 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
7490d5488e
commit
26dd9f0c8c
1 changed files with 4 additions and 3 deletions
|
|
@ -134,9 +134,10 @@ sub scanmanpage {
|
|||
|
||||
open(my $m, "<", "$file") ||
|
||||
die "test1173.pl could not open $file";
|
||||
if($file =~ /[\/\\](CURL|curl_)[^\/\\]*.3/) {
|
||||
# This is a man page for libcurl. It requires an example!
|
||||
$reqex = 1;
|
||||
if($file =~ /[\/\\](CURL|curl_)([^\/\\]*).3/) {
|
||||
# This is a man page for libcurl. It requires an example unless it's
|
||||
# considered deprecated.
|
||||
$reqex = 1 unless defined $deprecated{'CURL'.$2};
|
||||
if($1 eq "CURL") {
|
||||
$optpage = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue