mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
cmdline-opts/gen.pl: fix option matching to improve references
Previously it could mistakenly match partial names when there are options that start with the same prefix, leading to the wrong references used. Closes #8299
This commit is contained in:
parent
0c2694f22f
commit
fde0925214
@ -104,7 +104,7 @@ sub printdesc {
|
||||
if($d =~ /^[^ ]/) {
|
||||
for my $k (keys %optlong) {
|
||||
my $l = manpageify($k);
|
||||
$d =~ s/--$k([^a-z0-9_-])/$l$1/;
|
||||
$d =~ s/--$k([^a-z0-9_-])(\W)/$l$1$2/;
|
||||
}
|
||||
}
|
||||
# quote "bare" minuses in the output
|
||||
|
Loading…
Reference in New Issue
Block a user