Fix issues with CLI option not setting exact_url option right

This commit is contained in:
hartator 2017-06-11 22:17:23 -05:00
parent 123c2f3024
commit e9ffa6cf0d

View File

@ -26,8 +26,8 @@ option_parser = OptionParser.new do |opts|
options[:to_timestamp] = t options[:to_timestamp] = t
end end
opts.on("-e", "--exact_url", String, "Download only the url provied and not the full site") do |t| opts.on("-e", "--exact-url", "Download only the url provied and not the full site") do |t|
options[:only_filter] = t options[:exact_url] = t
end 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| 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|