Skip to content

Commit

Permalink
[doc] Explain that the opposite of --no-overwrites is --no-continue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-pmb committed Oct 18, 2024
1 parent c509896 commit 4897a7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions youtube_dl/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,15 +724,15 @@ def _comma_separated_values_options_callback(option, opt_str, value, parser):
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,
help='Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible.')
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,
Expand Down

0 comments on commit 4897a7e

Please sign in to comment.