Clear up confusion around arguments
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
0c6fcde9c4
commit
8dc088b4dd
@ -66,8 +66,9 @@ var netListen = &cli.Command{
|
||||
}
|
||||
|
||||
var netConnect = &cli.Command{
|
||||
Name: "connect",
|
||||
Usage: "Connect to a peer",
|
||||
Name: "connect",
|
||||
Usage: "Connect to a peer",
|
||||
ArgsUsage: "<peer multiaddr>",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
api, closer, err := GetAPI(cctx)
|
||||
if err != nil {
|
||||
|
@ -9,8 +9,9 @@ import (
|
||||
)
|
||||
|
||||
var sendCmd = &cli.Command{
|
||||
Name: "send",
|
||||
Usage: "send funds between accounts",
|
||||
Name: "send",
|
||||
Usage: "Send funds between accounts",
|
||||
ArgsUsage: "<target> <amount>",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "source",
|
||||
|
@ -26,8 +26,9 @@ var walletCmd = &cli.Command{
|
||||
}
|
||||
|
||||
var walletNew = &cli.Command{
|
||||
Name: "new",
|
||||
Usage: "Generate a new key of the given type (bls or secp256k1)",
|
||||
Name: "new",
|
||||
Usage: "Generate a new key of the given type",
|
||||
ArgsUsage: "[bls|secp256k1]",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
api, closer, err := GetFullNodeAPI(cctx)
|
||||
if err != nil {
|
||||
@ -76,8 +77,9 @@ var walletList = &cli.Command{
|
||||
}
|
||||
|
||||
var walletBalance = &cli.Command{
|
||||
Name: "balance",
|
||||
Usage: "get account balance",
|
||||
Name: "balance",
|
||||
Usage: "Get account balance",
|
||||
ArgsUsage: "[account address]",
|
||||
Action: func(cctx *cli.Context) error {
|
||||
api, closer, err := GetFullNodeAPI(cctx)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user