From f3729d63784f5dc3f655087342325557d21f147a Mon Sep 17 00:00:00 2001 From: hartator Date: Sat, 17 Sep 2016 12:48:28 -0500 Subject: [PATCH] Add the possibility to change directory to save to as a CLI option --- bin/wayback_machine_downloader | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/wayback_machine_downloader b/bin/wayback_machine_downloader index 81ec752..8e838d1 100755 --- a/bin/wayback_machine_downloader +++ b/bin/wayback_machine_downloader @@ -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