- Fix option 'single' to generate single manpages.
As far as I can tell the option did not work prior to this change.
Example: scripts/managen -d docs/cmdline-opts single variable.md
Closes https://github.com/curl/curl/pull/16344
}
sub showonly {
- my ($f) = @_;
- if(single($f, 1)) {
+ my ($dir, $f) = @_;
+ if(single($dir, 1, $f, 1)) {
print STDERR "$f: failed\n";
}
}
return;
}
elsif($f eq "single") {
- showonly($s[0]);
+ showonly($dir, $s[0]);
return;
}
elsif($f eq "protos") {