mirror of
https://github.com/curl/curl.git
synced 2026-05-30 07:37:33 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue