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) ```
This commit is contained in:
parent
f2c292e0c7
commit
a1ed4be223
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ var RPC = []cli.Flag{
|
||||||
},
|
},
|
||||||
cli.DurationFlag{
|
cli.DurationFlag{
|
||||||
Name: "timeout, s",
|
Name: "timeout, s",
|
||||||
Usage: "Timeout for the operation (10 seconds by default)",
|
Value: DefaultTimeout,
|
||||||
|
Usage: "Timeout for the operation",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue