Unverified Commit 06a72880 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 7c189c66
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 ":"";
        }