From: Steven Schubiger Date: Mon, 29 Jun 2009 11:38:30 +0000 (+0200) Subject: Check for negated option names when extracting params. X-Git-Tag: v1.13~330^2 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=9b8cba8a1281287d825d29665ecc624bbef615f2 Check for negated option names when extracting params. --- diff --git a/util/paramcheck.pl b/util/paramcheck.pl index 9aa63ce1..bc6b8cfd 100755 --- a/util/paramcheck.pl +++ b/util/paramcheck.pl @@ -250,8 +250,14 @@ sub emit_undocumented_opts } my @options; foreach my $opt (@$opts) { - if (not $items{$opt->{long_name}} || $opt->{deprecated}) { - push @options, $opt->{long_name}; + my $opt_name = $opt->{long_name}; + if (not $items{$opt_name} + || ($opt_name !~ /^no/ + ? $items{"no-$opt_name"} + : false) + || $opt->{deprecated}) + { + push @options, $opt_name; } }