]> sjero.net Git - wget/commitdiff
Check for negated option names when extracting params.
authorSteven Schubiger <stsc@member.fsf.org>
Mon, 29 Jun 2009 11:38:30 +0000 (13:38 +0200)
committerSteven Schubiger <stsc@member.fsf.org>
Mon, 29 Jun 2009 11:38:30 +0000 (13:38 +0200)
util/paramcheck.pl

index 9aa63ce10007527cdc95b99b01e24e98a05041fc..bc6b8cfdfb8efcda88404f60020ab587638c449a 100755 (executable)
@@ -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;
         }
     }