mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add default number of threads
This commit is contained in:
parent
fb80d2f484
commit
c8d2d12282
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ threads = 10
|
|||
|
||||
OptionParser.parse! do |parser|
|
||||
parser.banner = "Usage: invidious [arguments]"
|
||||
parser.on("-t THREADS", "--threads=THREADS", "Number of threads for crawling") do |number|
|
||||
parser.on("-t THREADS", "--threads=THREADS", "Number of threads for crawling (default: 10)") do |number|
|
||||
begin
|
||||
threads = number.to_i32
|
||||
rescue ex
|
||||
|
|
Loading…
Reference in a new issue