From 760bbb21101b1fc680ab559f2820a4715229e49e Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Sun, 16 Feb 2025 02:09:57 -0500 Subject: [PATCH] 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 --- scripts/managen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") { -- 2.47.3