]> sjero.net Git - wget/commitdiff
[svn] Make `--cookies' respect its arg.
authorhniksic <devnull@localhost>
Sun, 29 Apr 2001 10:56:43 +0000 (03:56 -0700)
committerhniksic <devnull@localhost>
Sun, 29 Apr 2001 10:56:43 +0000 (03:56 -0700)
Published in <sxs4rv8ht5e.fsf@florida.arsdigita.de>.

src/ChangeLog
src/main.c

index cde7aebd49ba084155112fbc7d5c3f7e28c5f44f..29fd32fd6de4d69c3d38a86cddf964df7f1a7658 100644 (file)
@@ -1,3 +1,7 @@
+2001-04-29  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * main.c (main): Make `--cookies' respect its argument.
+
 2001-04-28  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * main.c (main): Removed undocumented option `--email-address'.
index 255bb8c44552987b1498e59e0a0d85c4ec54cdca..d1735246339a821eff580bb558bf2bdd28a27849 100644 (file)
@@ -247,7 +247,6 @@ main (int argc, char *const *argv)
     { "backup-converted", no_argument, NULL, 'K' },
     { "continue", no_argument, NULL, 'c' },
     { "convert-links", no_argument, NULL, 'k' },
-    { "cookies", no_argument, NULL, 160 },
     { "debug", no_argument, NULL, 'd' },
     { "delete-after", no_argument, NULL, 136 },
     { "dont-remove-listing", no_argument, NULL, 149 },
@@ -287,6 +286,7 @@ main (int argc, char *const *argv)
     { "base", required_argument, NULL, 'B' },
     { "bind-address", required_argument, NULL, 155 },
     { "cache", required_argument, NULL, 'C' },
+    { "cookies", required_argument, NULL, 160 },
     { "cut-dirs", required_argument, NULL, 145 },
     { "directory-prefix", required_argument, NULL, 'P' },
     { "domains", required_argument, NULL, 'D' },
@@ -519,7 +519,7 @@ GNU General Public License for more details.\n"));
          setval ("followtags", optarg);
          break;
        case 160:
-         setval ("cookies", "on");
+         setval ("cookies", optarg);
          break;
        case 161:
          setval ("loadcookies", optarg);