mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Clarify wait option
This commit is contained in:
parent
cf9931e2a1
commit
1bf492ce78
1 changed files with 2 additions and 2 deletions
|
@ -32,11 +32,11 @@ Kemal.config.extra_options do |parser|
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
parser.on("-w TIME", "--wait=TIME", "Time to wait between server requests in seconds (default: 1 second)") do |number|
|
parser.on("-w SECONDS", "--wait=SECONDS", "Time to wait between server requests (default: 1)") do |number|
|
||||||
begin
|
begin
|
||||||
sleep_time = number.to_f64
|
sleep_time = number.to_f64
|
||||||
rescue ex
|
rescue ex
|
||||||
puts "TIME must be integer or float"
|
puts "SECONDS must be integer or float"
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue