diff --git a/x/upgrade/client/cli/query.go b/x/upgrade/client/cli/query.go index 8f21c123dd..ab747f611a 100644 --- a/x/upgrade/client/cli/query.go +++ b/x/upgrade/client/cli/query.go @@ -33,7 +33,7 @@ func GetCurrentPlanCmd() *cobra.Command { Use: "plan", Short: "get upgrade plan (if one exists)", Long: "Gets the currently scheduled upgrade plan, if one exists", - Args: cobra.ExactArgs(0), + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientQueryContext(cmd) if err != nil { diff --git a/x/upgrade/client/cli/tx.go b/x/upgrade/client/cli/tx.go index 1ca4c34865..dc7440f76f 100644 --- a/x/upgrade/client/cli/tx.go +++ b/x/upgrade/client/cli/tx.go @@ -79,7 +79,7 @@ func NewCmdSubmitUpgradeProposal() *cobra.Command { func NewCmdSubmitCancelUpgradeProposal() *cobra.Command { cmd := &cobra.Command{ Use: "cancel-software-upgrade [flags]", - Args: cobra.ExactArgs(0), + Args: cobra.NoArgs, Short: "Cancel the current software upgrade proposal", Long: "Cancel a software upgrade along with an initial deposit.", RunE: func(cmd *cobra.Command, args []string) error {