From af8ef28d6703756fa2a17b7ea9f98f2ad8297ad0 Mon Sep 17 00:00:00 2001 From: hartator Date: Sun, 11 Jun 2017 21:53:45 -0500 Subject: [PATCH] Add explanation to use exact url flag for the CLI --- bin/wayback_machine_downloader | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/wayback_machine_downloader b/bin/wayback_machine_downloader index b778049..0815950 100755 --- a/bin/wayback_machine_downloader +++ b/bin/wayback_machine_downloader @@ -26,6 +26,10 @@ option_parser = OptionParser.new do |opts| options[:to_timestamp] = t end + opts.on("-e", "--exact_url", String, "Download only the url provied and not the full site") do |t| + options[:only_filter] = t + end + opts.on("-o", "--only ONLY_FILTER", String, "Restrict downloading to urls that match this filter", "(use // notation for the filter to be treated as a regex)") do |t| options[:only_filter] = t end @@ -42,11 +46,11 @@ option_parser = OptionParser.new do |opts| options[:threads_count] = t end - opts.on("-p", "--maximum-snapshot NUMBER", Integer, "Maximum snapshot pages to consider (Default is 100)", "Count an average of 150,000 snapshots per page ") do |t| + opts.on("-p", "--maximum-snapshot NUMBER", Integer, "Maximum snapshot pages to consider (Default is 100)", "Count an average of 150,000 snapshots per page") do |t| options[:maximum_pages] = t end - opts.on("-l", "--list", "Only list file urls in a JSON format with the archived timestamps, won't download anything.") do |t| + opts.on("-l", "--list", "Only list file urls in a JSON format with the archived timestamps, won't download anything") do |t| options[:list] = true end