]> sjero.net Git - wget/blobdiff - src/main.c
If -nc and -k are used at the same time, use only the latter
[wget] / src / main.c
index ce0b58f6e305aa5ff7ae17692efeec3a32894896..a583bac4cf771bc2b5756abf9bf5fad60abc78f5 100644 (file)
@@ -1060,6 +1060,14 @@ main (int argc, char **argv)
   /* All user options have now been processed, so it's now safe to do
      interoption dependency checks. */
 
+  if (opt.noclobber && opt.convert_links)
+    {
+      fprintf (stderr,
+               _("Both --no-clobber and --convert-links were specified,"
+                 "only --convert-links will be used.\n"));
+      opt.noclobber = false;
+    }
+
   if (opt.reclevel == 0)
       opt.reclevel = INFINITE_RECURSION; /* see recur.h for commentary */