From c937458d80de6cb964a26e94af51f89e0c83344a 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 434f520d3..3807f030e 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -720,7 +720,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, @@ -728,7 +728,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,