From 625140337857bef6a35d61735c5e35b59b5d12ef Mon Sep 17 00:00:00 2001 From: hniksic Date: Mon, 25 Apr 2005 03:18:21 -0700 Subject: [PATCH] [svn] Doc fix. --- src/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index c91846c9..935d16d7 100644 --- a/src/main.c +++ b/src/main.c @@ -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