Merge pull request #2411 from nspcc-dev/cli/improve-query-help

cli: improve help text a bit
This commit is contained in:
Roman Khimov 2022-03-25 17:54:03 +03:00 committed by GitHub
commit fa040c21ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

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

View file

@ -56,10 +56,11 @@ func NewCommands() []cli.Command {
Flags: options.RPC,
},
{
Name: "tx",
Usage: "Query transaction status",
Action: queryTx,
Flags: queryTxFlags,
Name: "tx",
Usage: "Query transaction status",
UsageText: "neo-go query tx <hash> -r endpoint [-v]",
Action: queryTx,
Flags: queryTxFlags,
},
{
Name: "voter",