From: Jay Satiro Date: Sun, 16 Feb 2025 07:09:57 +0000 (-0500) Subject: scripts/managen: fix option 'single' X-Git-Tag: curl-8_13_0~456 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=760bbb21101b1fc680ab559f2820a4715229e49e;p=thirdparty%2Fcurl.git scripts/managen: fix option 'single' - 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 --- diff --git a/scripts/managen b/scripts/managen index 3cf026eda0..170d1f8bd3 100755 --- a/scripts/managen +++ b/scripts/managen @@ -1182,8 +1182,8 @@ HEADER } sub showonly { - my ($f) = @_; - if(single($f, 1)) { + my ($dir, $f) = @_; + if(single($dir, 1, $f, 1)) { print STDERR "$f: failed\n"; } } @@ -1218,7 +1218,7 @@ sub getargs { return; } elsif($f eq "single") { - showonly($s[0]); + showonly($dir, $s[0]); return; } elsif($f eq "protos") {