Add downloading in multi threads

This commit is contained in:
Šarūnas Kūjalis
2016-09-04 23:38:38 +03:00
parent 0aabbc9a3b
commit ee5c87378d
3 changed files with 112 additions and 63 deletions

View File

@@ -38,6 +38,10 @@ option_parser = OptionParser.new do |opts|
options[:list] = true
end
opts.on("--threads NUMBER", Integer, "Number of threads to use while downloading website (ie. 20)") do |t|
options[:threads_count] = t
end
opts.on("-v", "--version", "Display version") do |t|
options[:version] = t
end