]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Mon, 25 Apr 2005 10:18:21 +0000 (03:18 -0700)
committerhniksic <devnull@localhost>
Mon, 25 Apr 2005 10:18:21 +0000 (03:18 -0700)
src/main.c

index c91846c90dc9552fa8164d891f4fad544bc2da4d..935d16d7af0b099dc6e4962f41459d765f0e917e 100644 (file)
@@ -326,9 +326,11 @@ init_switches (void)
            *p++ = ':';
          break;
        case OPT_BOOLEAN:
-         /* Don't specify optional arguments for boolean short
-            options.  They are evil because they prevent combining of
-            short options.  */
+         /* Specify an optional argument for long options, so that
+            --option=off works the same as --no-option, for
+            compatibility with pre-1.10 Wget.  However, don't specify
+            optional arguments short-option booleans because they
+            prevent combining of short options.  */
          longopt->has_arg = optional_argument;
          /* For Boolean options, add the "--no-FOO" variant, which is
             identical to "--foo", except it has opposite meaning and