Add explanation to use exact url flag for the CLI

This commit is contained in:
hartator 2017-06-11 21:53:45 -05:00
parent 246441ff17
commit af8ef28d67

View File

@ -26,6 +26,10 @@ 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|
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| 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 options[:only_filter] = t
end end
@ -46,7 +50,7 @@ option_parser = OptionParser.new do |opts|
options[:maximum_pages] = t options[:maximum_pages] = t
end 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 options[:list] = true
end end