1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00

cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options

This commit is contained in:
Daniel Stenberg 2018-05-28 14:59:37 +02:00
parent 7c189c6608
commit 06a72880d6
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -202,6 +202,9 @@ sub single {
my @m=split(/ /, $seealso);
my $mstr;
for my $k (@m) {
if(!$helplong{$k}) {
print STDERR "WARN: $f see-alsos a non-existing option: $k\n";
}
my $l = manpageify($k);
$mstr .= sprintf "%s$l", $mstr?" and ":"";
}
@ -216,6 +219,9 @@ sub single {
my @m=split(/ /, $mutexed);
my $mstr;
for my $k (@m) {
if(!$helplong{$k}) {
print STDERR "WARN: $f mutexes a non-existing option: $k\n";
}
my $l = manpageify($k);
$mstr .= sprintf "%s$l", $mstr?" and ":"";
}