From 06a72880d6a1bfb1517df4b24d892eb6922de114 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 28 May 2018 14:59:37 +0200 Subject: [PATCH] cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options --- docs/cmdline-opts/gen.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/cmdline-opts/gen.pl b/docs/cmdline-opts/gen.pl index 6ecf1b51e..dd990caf0 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 ":""; }