mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Add the possibility to change directory to save to as a CLI option
This commit is contained in:
parent
8623d3a74b
commit
f3729d6378
@ -14,6 +14,10 @@ option_parser = OptionParser.new do |opts|
|
||||
opts.separator ""
|
||||
opts.separator "Optional options:"
|
||||
|
||||
opts.on("-d", "--directory PATH", String, "Directory to save the downloaded files to. Default is ./websites/ plus the domain name.") do |t|
|
||||
options[:directory] = t
|
||||
end
|
||||
|
||||
opts.on("-f", "--from TIMESTAMP", Integer, "Only files on or after timestamp supplied (ie. 20060716231334)") do |t|
|
||||
options[:from_timestamp] = t
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user