From: Daniel Stenberg Date: Mon, 28 May 2018 12:59:37 +0000 (+0200) Subject: cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options X-Git-Tag: curl-7_61_0~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06a72880d6a1bfb1517df4b24d892eb6922de114;p=thirdparty%2Fcurl.git cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options --- diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 6ecf1b51e3..dd990caf02 100755 --- a/docs/cmdline-opts/gen.pl +++ b/docs/cmdline-opts/gen.pl @@ -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 ":""; }