Mark --to and --amount flags required for gaiacli tx send

Closes: #2547
This commit is contained in:
Alessio Treglia 2018-10-20 23:52:45 -07:00
parent cca2f9db43
commit a4c7faaa40
No known key found for this signature in database
GPG Key ID: E8A48AE5311D765A
2 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,7 @@ BUG FIXES
* Gaia CLI (`gaiacli`)
* [cli] [\#1997](https://github.com/cosmos/cosmos-sdk/issues/1997) Handle panics gracefully when `gaiacli stake {delegation,unbond}` fail to unmarshal delegation.
* [cli] [\#2265](https://github.com/cosmos/cosmos-sdk/issues/2265) Fix JSON formatting of the `gaiacli send` command.
* [cli] [\#2547](https://github.com/cosmos/cosmos-sdk/issues/2547) Mark --to and --amount as required flags for `gaiacli tx send`.
* Gaia
* [x/stake] Return correct Tendermint validator update set on `EndBlocker` by not

View File

@ -75,6 +75,8 @@ func SendTxCmd(cdc *codec.Codec) *cobra.Command {
cmd.Flags().String(flagTo, "", "Address to send coins")
cmd.Flags().String(flagAmount, "", "Amount of coins to send")
cmd.MarkFlagRequired(flagTo)
cmd.MarkFlagRequired(flagAmount)
return cmd
}