From e9ffa6cf0d87a03cf47db759e61f7b6c90035737 Mon Sep 17 00:00:00 2001 From: hartator Date: Sun, 11 Jun 2017 22:17:23 -0500 Subject: [PATCH] Fix issues with CLI option not setting exact_url option right --- bin/wayback_machine_downloader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/wayback_machine_downloader b/bin/wayback_machine_downloader index 0815950..0b4a417 100755 --- a/bin/wayback_machine_downloader +++ b/bin/wayback_machine_downloader @@ -26,8 +26,8 @@ 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 + opts.on("-e", "--exact-url", "Download only the url provied and not the full site") do |t| + options[:exact_url] = 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|