Added support for resuming incomplete downloads

This commit is contained in:
Felipe
2025-04-19 13:40:14 +00:00
committed by GitHub
parent 27dd619aa4
commit febffe5de4
4 changed files with 216 additions and 47 deletions

View File

@@ -59,7 +59,15 @@ option_parser = OptionParser.new do |opts|
end
opts.on("-r", "--rewritten", "Downloads the rewritten Wayback Machine files instead of the original files") do |t|
options[:rewritten] = t
options[:rewritten] = true
end
opts.on("--reset", "Delete state files (.cdx.json, .downloaded.txt) and restart the download from scratch") do |t|
options[:reset] = true
end
opts.on("--keep", "Keep state files (.cdx.json, .downloaded.txt) after a successful download") do |t|
options[:keep] = true
end
opts.on("-v", "--version", "Display version") do |t|