Skip to content

Commit 32ff7aa

Browse files
charymallojumergify[bot]
authored andcommitted
docs: change bank multi-send command description (#16950)
(cherry picked from commit c1f5524)
1 parent 1e11562 commit 32ff7aa

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

x/bank/client/cli/tx.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/cosmos/cosmos-sdk/client/flags"
1313
"github.com/cosmos/cosmos-sdk/client/tx"
1414
sdk "github.com/cosmos/cosmos-sdk/types"
15+
"github.com/cosmos/cosmos-sdk/version"
1516
"github.com/cosmos/cosmos-sdk/x/bank/types"
1617
)
1718

@@ -80,15 +81,16 @@ When using '--dry-run' a key name cannot be used, only a bech32 address.
8081
// For a better UX this command is limited to send funds from one account to two or more accounts.
8182
func NewMultiSendTxCmd(ac address.Codec) *cobra.Command {
8283
cmd := &cobra.Command{
83-
Use: "multi-send [from_key_or_address] [to_address_1, to_address_2, ...] [amount]",
84+
Use: "multi-send [from_key_or_address] [to_address_1 to_address_2 ...] [amount]",
8485
Short: "Send funds from one account to two or more accounts.",
8586
Long: `Send funds from one account to two or more accounts.
8687
By default, sends the [amount] to each address of the list.
8788
Using the '--split' flag, the [amount] is split equally between the addresses.
88-
Note, the '--from' flag is ignored as it is implied from [from_key_or_address].
89-
When using '--dry-run' a key name cannot be used, only a bech32 address.
90-
`,
91-
Args: cobra.MinimumNArgs(4),
89+
Note, the '--from' flag is ignored as it is implied from [from_key_or_address] and
90+
separate addresses with space.
91+
When using '--dry-run' a key name cannot be used, only a bech32 address.`,
92+
Example: fmt.Sprintf("%s tx bank multi-send cosmos1... cosmos1... cosmos1... cosmos1... 10stake", version.AppName),
93+
Args: cobra.MinimumNArgs(4),
9294
RunE: func(cmd *cobra.Command, args []string) error {
9395
cmd.Flags().Set(flags.FlagFrom, args[0])
9496
clientCtx, err := client.GetClientTxContext(cmd)

0 commit comments

Comments
 (0)