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{
|
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 {
|
||||||
|
@ -9,8 +9,9 @@ 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",
|
||||||
|
@ -26,8 +26,9 @@ 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 {
|
||||||
@ -76,8 +77,9 @@ 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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user