Added retry command

fixes [Feature request} Retry flag
Fixes StrawberryMaster/wayback-machine-downloader#31
This commit is contained in:
Felipe
2025-08-20 01:21:29 +00:00
committed by GitHub
parent fa306ac92b
commit fc8d8a9441
3 changed files with 40 additions and 129 deletions

View File

@@ -74,6 +74,10 @@ option_parser = OptionParser.new do |opts|
options[:keep] = true
end
opts.on("--rt", "--retry N", Integer, "Maximum number of retries for failed downloads (default: 3)") do |t|
options[:max_retries] = t
end
opts.on("--recursive-subdomains", "Recursively download content from subdomains") do |t|
options[:recursive_subdomains] = true
end