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:
Anna Shaleva 2022-03-25 11:50:55 +03:00
parent f2c292e0c7
commit a1ed4be223

View file

@ -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",
}, },
} }