aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-05-28 14:59:37 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-05-28 15:02:03 +0200
commit06a72880d6a1bfb1517df4b24d892eb6922de114 (patch)
treee9cd44cb7aa5f4caf9172fc72172caffd6c941f8 /docs/cmdline-opts
parent7c189c66080664f48758a938d852e5d0471c3621 (diff)
cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options
Diffstat (limited to 'docs/cmdline-opts')
-rwxr-xr-xdocs/cmdline-opts/gen.pl6
1 files changed, 6 insertions, 0 deletions
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 ":"";
}