tools: bump default v retry timeout to 10 minutes, clarify the usage of its --timeout option.

This commit is contained in:
Delyan Angelov 2024-11-08 09:25:26 +02:00
parent a5839aa4af
commit 22983a08e6
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -20,7 +20,7 @@ fn main() {
fp.skip_executable() fp.skip_executable()
fp.limit_free_args_to_at_least(1)! fp.limit_free_args_to_at_least(1)!
context.show_help = fp.bool('help', `h`, false, 'Show this help screen.') context.show_help = fp.bool('help', `h`, false, 'Show this help screen.')
context.timeout = fp.float('timeout', `t`, 300.0, 'Timeout in seconds. Default: 300.0 seconds.') * time.second context.timeout = fp.float('timeout', `t`, 600.0, 'Timeout in seconds (for all retries). Default: 600.0 seconds (10 minutes).') * time.second
context.delay = fp.float('delay', `d`, 1.0, 'Delay between each retry in seconds. Default: 1.0 second.') * time.second context.delay = fp.float('delay', `d`, 1.0, 'Delay between each retry in seconds. Default: 1.0 second.') * time.second
context.retries = fp.int('retries', `r`, 10, 'Maximum number of retries. Default: 10.') context.retries = fp.int('retries', `r`, 10, 'Maximum number of retries. Default: 10.')
if context.show_help { if context.show_help {