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

@ -68,6 +68,7 @@ var netListen = &cli.Command{
var netConnect = &cli.Command{ var netConnect = &cli.Command{
Name: "connect", Name: "connect",
Usage: "Connect to a peer", Usage: "Connect to a peer",
ArgsUsage: "<peer multiaddr>",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
api, closer, err := GetAPI(cctx) api, closer, err := GetAPI(cctx)
if err != nil { if err != nil {

View File

@ -10,7 +10,8 @@ import (
var sendCmd = &cli.Command{ var sendCmd = &cli.Command{
Name: "send", Name: "send",
Usage: "send funds between accounts", Usage: "Send funds between accounts",
ArgsUsage: "<target> <amount>",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
Name: "source", Name: "source",

View File

@ -27,7 +27,8 @@ var walletCmd = &cli.Command{
var walletNew = &cli.Command{ var walletNew = &cli.Command{
Name: "new", Name: "new",
Usage: "Generate a new key of the given type (bls or secp256k1)", Usage: "Generate a new key of the given type",
ArgsUsage: "[bls|secp256k1]",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
api, closer, err := GetFullNodeAPI(cctx) api, closer, err := GetFullNodeAPI(cctx)
if err != nil { if err != nil {
@ -77,7 +78,8 @@ var walletList = &cli.Command{
var walletBalance = &cli.Command{ var walletBalance = &cli.Command{
Name: "balance", Name: "balance",
Usage: "get account balance", Usage: "Get account balance",
ArgsUsage: "[account address]",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
api, closer, err := GetFullNodeAPI(cctx) api, closer, err := GetFullNodeAPI(cctx)
if err != nil { if err != nil {