From 4897a7e5293f7fa06aeaa26e0e25d44c64648a33 Mon Sep 17 00:00:00 2001 From: mk-pmb Date: Sat, 1 Jun 2024 09:18:57 +0200 Subject: [PATCH] [doc] Explain that the opposite of --no-overwrites is --no-continue. --- README.md | 7 +++++-- youtube_dl/options.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 47e686f84..b159f9cc1 100644 --- a/README.md +++ b/README.md @@ -255,12 +255,15 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo --restrict-filenames Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames - -w, --no-overwrites Do not overwrite files + -w, --no-overwrites Do not overwrite files. (For the + opposite, see --no-continue.) -c, --continue Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible. --no-continue Do not resume partially downloaded - files (restart from beginning) + files: Instead, restart from the + beginning and ruthlessly overwrite + existing files. --no-part Do not use .part files - write directly into output file --no-mtime Do not use the Last-modified header to diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 61705d1f0..1ee8bab8a 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -724,7 +724,7 @@ def parseOpts(overrideArguments=None): filesystem.add_option( '-w', '--no-overwrites', action='store_true', dest='nooverwrites', default=False, - help='Do not overwrite files') + help='Do not overwrite files. (For the opposite, see --no-continue.)') filesystem.add_option( '-c', '--continue', action='store_true', dest='continue_dl', default=True, @@ -732,7 +732,7 @@ def parseOpts(overrideArguments=None): filesystem.add_option( '--no-continue', action='store_false', dest='continue_dl', - help='Do not resume partially downloaded files (restart from beginning)') + help='Do not resume partially downloaded files: Instead, restart from the beginning and ruthlessly overwrite existing files.') filesystem.add_option( '--no-part', action='store_true', dest='nopart', default=False,