From 1ddcbb6c8490b4dd540fa0af7422986e905e15dc Mon Sep 17 00:00:00 2001 From: vvondruska Date: Wed, 12 Oct 2022 18:02:10 +0200 Subject: [PATCH] Fixed deprecations --- cmd/update/app/command.go | 2 +- cmd/update/cluster/command.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/update/app/command.go b/cmd/update/app/command.go index e5a120589..c87fce0bb 100644 --- a/cmd/update/app/command.go +++ b/cmd/update/app/command.go @@ -77,7 +77,7 @@ func New(config Config) (*cobra.Command, error) { Short: shortDescription, Long: longDescription, Example: examples, - Args: cobra.ExactValidArgs(0), + Args: cobra.MatchAll(cobra.ExactArgs(0), cobra.OnlyValidArgs), RunE: r.Run, PreRunE: middleware.Compose( renewtoken.Middleware(*config.ConfigFlags), diff --git a/cmd/update/cluster/command.go b/cmd/update/cluster/command.go index dc4323e4f..20ba0971d 100644 --- a/cmd/update/cluster/command.go +++ b/cmd/update/cluster/command.go @@ -82,7 +82,7 @@ func New(config Config) (*cobra.Command, error) { Short: shortDescription, Long: longDescription, Example: examples, - Args: cobra.ExactValidArgs(0), + Args: cobra.MatchAll(cobra.ExactArgs(0), cobra.OnlyValidArgs), RunE: r.Run, PreRunE: middleware.Compose( renewtoken.Middleware(*config.ConfigFlags),