cli: improve query tx usage text

Note explicitly that transaction hash should be specified, so instead of
an old help text:
```
$ ./bin/neo-go query tx --help
NAME:
   neo-go query tx - Query transaction status

USAGE:
   neo-go query tx [command options] [arguments...]

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)
```
now we got the more informative one:
```
$ ./bin/neo-go query tx --help
NAME:
   neo-go query tx - Query transaction status

USAGE:
   neo-go query tx <hash> -r endpoint [-v]

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)
```
This commit is contained in:
Anna Shaleva 2022-03-25 11:40:53 +03:00
parent 52893d6a00
commit f2c292e0c7

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