Clear up confusion around arguments

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-10-09 22:02:08 +02:00
parent 0c6fcde9c4
commit 8dc088b4dd
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
3 changed files with 12 additions and 8 deletions

View File

@ -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 {

View File

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

View File

@ -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 {