From a1ed4be223fa7a1dfd856d08680952b52153e4af Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 25 Mar 2022 11:50:55 +0300 Subject: [PATCH] cli: properly set default timeout for RPC flag Old help message is misleading a bit: ``` OPTIONS: --verbose, -v Output full tx info and execution logs --rpc-endpoint value, -r value RPC node address --timeout value, -s value Timeout for the operation (10 seconds by default) (default: 0s) ``` The new one: ``` OPTIONS: --verbose, -v Output full tx info and execution logs --rpc-endpoint value, -r value RPC node address --timeout value, -s value Timeout for the operation (default: 10s) ``` --- cli/options/options.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/options/options.go b/cli/options/options.go index 390bf3771..ce5534574 100644 --- a/cli/options/options.go +++ b/cli/options/options.go @@ -37,7 +37,8 @@ var RPC = []cli.Flag{ }, cli.DurationFlag{ Name: "timeout, s", - Usage: "Timeout for the operation (10 seconds by default)", + Value: DefaultTimeout, + Usage: "Timeout for the operation", }, }