Remove list attribute from the downloader.

Whether to list or download is a program option external to the downloader
This commit is contained in:
Oleg Pudeyev
2017-03-15 17:12:41 -04:00
parent ea73ed5ed6
commit 6b8c1aa194
2 changed files with 2 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ end.parse!
if (base_url = ARGV[-1])
options[:base_url] = base_url
wayback_machine_downloader = WaybackMachineDownloader.new options
if wayback_machine_downloader.list
if options[:list]
wayback_machine_downloader.list_files
else
wayback_machine_downloader.download_files