From: Daniel Stenberg Date: Tue, 15 Nov 2016 22:44:36 +0000 (+0100) Subject: cmdline/gen: replace options in texts better X-Git-Tag: curl-7_52_0~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ef1f10cab9dd6ca4b2e0e5fea9341a897a589bf;p=thirdparty%2Fcurl.git cmdline/gen: replace options in texts better --- diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 9bdfa4c316..680031003a 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -33,7 +33,7 @@ sub printdesc { if($d =~ /^[^ ]/) { for my $k (keys %optlong) { my $l = manpageify($k); - $d =~ s/--$k(\s)/$l$1/; + $d =~ s/--$k([^a-z0-9_-])/$l$1/; } } print $d;