Skip to content

Commit

Permalink
Add explanation to use exact url flag for the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
hartator committed Jun 12, 2017
1 parent 246441f commit af8ef28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/wayback_machine_downloader
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit af8ef28

Please sign in to comment.