Add the possibility to change directory to save to as a CLI option

This commit is contained in:
hartator 2016-09-17 12:48:28 -05:00
parent 8623d3a74b
commit f3729d6378

View File

@ -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