diff --git a/x/slashing/client/cli/tx.go b/x/slashing/client/cli/tx.go index 5831ef3100..2fdd65c6c3 100644 --- a/x/slashing/client/cli/tx.go +++ b/x/slashing/client/cli/tx.go @@ -18,7 +18,7 @@ import ( func GetCmdUnjail(cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "unjail", - Args: cobra.ExactArgs(0), + Args: cobra.NoArgs, Short: "unjail validator previously jailed for downtime", RunE: func(cmd *cobra.Command, args []string) error { txCtx := authctx.NewTxContextFromCLI().WithCodec(cdc) diff --git a/x/stake/client/cli/query.go b/x/stake/client/cli/query.go index 4b8e99e7d2..d58ea39381 100644 --- a/x/stake/client/cli/query.go +++ b/x/stake/client/cli/query.go @@ -423,7 +423,7 @@ func GetCmdQueryPool(storeName string, cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "pool", Short: "Query the current staking pool values", - Args: cobra.ExactArgs(0), + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { key := stake.PoolKey cliCtx := context.NewCLIContext().WithCodec(cdc) @@ -462,7 +462,7 @@ func GetCmdQueryParams(storeName string, cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "parameters", Short: "Query the current staking parameters information", - Args: cobra.ExactArgs(0), + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { key := stake.ParamKey cliCtx := context.NewCLIContext().WithCodec(cdc)