Clear up confusion around arguments
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
0c6fcde9c4
commit
8dc088b4dd
@ -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 {
|
||||||
|
@ -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",
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user