1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

cmdline/gen: replace options in texts better

This commit is contained in:
Daniel Stenberg 2016-11-15 23:44:36 +01:00
parent b65f79d9e8
commit 1ef1f10cab

View File

@ -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;